tina4js 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- import {Globals} from "../Globals";
2
-
3
- export class Tina4Api extends HTMLElement {
4
- constructor() {
5
- // Always call super first in constructor
6
- super();
7
- let api = {};
8
- api['url'] = this.getAttribute('url');
9
- api['token'] = this.getAttribute('token');
10
- Globals.set('api', api);
11
- }
12
- }
1
+ import {Globals} from "../Globals";
2
+
3
+ export class Tina4Api extends HTMLElement {
4
+ constructor() {
5
+ // Always call super first in constructor
6
+ super();
7
+ let api = {};
8
+ api['url'] = this.getAttribute('url');
9
+ api['token'] = this.getAttribute('token');
10
+ Globals.set('api', api);
11
+ }
12
+ }
@@ -1,9 +1,9 @@
1
- export class Tina4Config extends HTMLElement {
2
- constructor() {
3
- // Always call super first in constructor
4
- super();
5
-
6
- // write element functionality in here
7
- console.log ('Here!', this.getAttribute('name'));
8
- }
9
- }
1
+ export class Tina4Config extends HTMLElement {
2
+ constructor() {
3
+ // Always call super first in constructor
4
+ super();
5
+
6
+ // write element functionality in here
7
+ console.log ('Here!', this.getAttribute('name'));
8
+ }
9
+ }
package/tina4.ts CHANGED
@@ -1,5 +1,5 @@
1
- import {Tina4} from "./tina4/Tina4";
2
- Tina4.initialize({defaultTarget: 'root'});
3
- import "./src/routes/**";
4
- import "../../src/routes/**";
5
- let tina4 = new Tina4();
1
+ import {Tina4} from "./tina4/Tina4";
2
+ Tina4.initialize({defaultTarget: 'root'});
3
+ import "./src/routes/**";
4
+ import "../../src/routes/**";
5
+ let tina4 = new Tina4();