@angular-wave/angular.ts 0.0.26 → 0.0.28

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.
Files changed (82) hide show
  1. package/README.md +1 -2
  2. package/dist/angular-ts.esm.js +1 -1
  3. package/dist/angular-ts.umd.js +1 -1
  4. package/e2e/unit.spec.ts +2 -1
  5. package/index.html +8 -9
  6. package/package.json +1 -1
  7. package/src/core/pubsub.js +329 -0
  8. package/src/router/globals.js +0 -5
  9. package/src/router/hooks/core-resolvables.js +12 -11
  10. package/src/router/hooks/ignored-transition.js +1 -1
  11. package/src/router/hooks/lazy-load.js +40 -41
  12. package/src/router/hooks/redirect-to.js +32 -29
  13. package/src/router/hooks/update-globals.js +1 -1
  14. package/src/router/hooks/url.js +33 -24
  15. package/src/router/hooks/views.js +21 -20
  16. package/src/router/params/param-factory.js +17 -0
  17. package/src/router/params/param-types.js +0 -3
  18. package/src/router/router.js +78 -62
  19. package/src/router/services.js +2 -4
  20. package/src/router/state/state-queue-manager.js +5 -7
  21. package/src/router/state/state-registry.js +8 -10
  22. package/src/router/state/state-service.js +34 -33
  23. package/src/router/transition/hook-builder.js +2 -2
  24. package/src/router/transition/transition-hook.js +3 -9
  25. package/src/router/transition/transition-service.js +12 -30
  26. package/src/router/transition/transition.js +28 -25
  27. package/src/router/url/url-config.js +1 -49
  28. package/src/router/url/url-matcher-factory.js +10 -51
  29. package/src/router/url/url-router.js +27 -17
  30. package/src/router/url/url-rule.js +9 -13
  31. package/src/router/url/url-rules.js +3 -7
  32. package/src/router/url/url-service.js +134 -97
  33. package/src/router/view/view.js +3 -3
  34. package/src/shared/hof.js +1 -1
  35. package/test/angular.spec.js +1 -0
  36. package/test/aria/aria.spec.js +2 -1
  37. package/test/core/interval.spec.js +1 -1
  38. package/test/core/pubsub.spec.js +314 -0
  39. package/test/directive/bind.spec.js +2 -1
  40. package/test/directive/boolean.spec.js +4 -2
  41. package/test/directive/change.spec.js +1 -1
  42. package/test/directive/class.spec.js +1 -0
  43. package/test/directive/click.spec.js +2 -1
  44. package/test/directive/cloak.spec.js +1 -2
  45. package/test/directive/{constoller.spec.js → controller.spec.js} +1 -0
  46. package/test/directive/element-style.spec.js +1 -0
  47. package/test/directive/event.spec.js +1 -1
  48. package/test/directive/href.spec.js +2 -1
  49. package/test/directive/init.spec.js +1 -0
  50. package/test/directive/input.spec.js +200 -285
  51. package/test/directive/list.spec.js +2 -1
  52. package/test/directive/model.spec.js +1 -0
  53. package/test/directive/non-bindable.spec.js +2 -1
  54. package/test/directive/script.spec.js +1 -0
  55. package/test/directive/scrset.spec.js +2 -1
  56. package/test/directive/show-hide.spec.js +1 -0
  57. package/test/directive/src.spec.js +2 -1
  58. package/test/directive/style.spec.js +1 -0
  59. package/test/directive/switch.spec.js +2 -1
  60. package/test/directive/validators.spec.js +1 -1
  61. package/test/router/state-directives.spec.js +72 -72
  62. package/test/router/state.spec.js +5 -5
  63. package/test/router/template-factory.spec.js +2 -2
  64. package/test/router/view-directive.spec.js +65 -65
  65. package/test/router/view-hook.spec.js +13 -13
  66. package/test/router/view-scroll.spec.js +3 -3
  67. package/test/router/view.spec.js +2 -2
  68. package/types/router/core/common/coreservices.d.ts +2 -3
  69. package/types/router/core/globals.d.ts +1 -4
  70. package/types/router/core/interface.d.ts +2 -8
  71. package/types/router/core/params/paramTypes.d.ts +0 -1
  72. package/types/router/core/router.d.ts +2 -3
  73. package/types/router/core/state/stateQueueManager.d.ts +1 -3
  74. package/types/router/core/state/stateRegistry.d.ts +0 -2
  75. package/types/router/core/state/stateService.d.ts +1 -2
  76. package/types/router/core/transition/interface.d.ts +3 -3
  77. package/types/router/core/transition/transitionService.d.ts +1 -2
  78. package/types/router/core/url/urlConfig.d.ts +1 -2
  79. package/types/router/core/url/urlRules.d.ts +1 -2
  80. package/types/router/core/url/urlService.d.ts +1 -2
  81. package/types/router/locationServices.d.ts +0 -1
  82. package/src/router/location-services.js +0 -67
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
 
5
5
  describe("ng-bind", () => {
6
6
  let $rootScope;
@@ -24,6 +24,7 @@ describe("ng-bind", () => {
24
24
 
25
25
  afterEach(() => {
26
26
  dealoc(element);
27
+ jqLite.CACHE.clear();
27
28
  });
28
29
 
29
30
  describe("ngBind", () => {
@@ -1,8 +1,9 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
3
4
 
4
5
  describe("boolean attr directives", () => {
5
- let element, $rootScope, $compile, $document, $rootElement;
6
+ let element, $rootScope, $compile, $rootElement;
6
7
 
7
8
  beforeEach(() => {
8
9
  publishExternalAPI();
@@ -19,7 +20,8 @@ describe("boolean attr directives", () => {
19
20
  });
20
21
 
21
22
  afterEach(() => {
22
- // dealoc(element);
23
+ dealoc(element);
24
+ jqLite.CACHE.clear();
23
25
  });
24
26
 
25
27
  it("should properly evaluate 0 as false", () => {
@@ -1,5 +1,5 @@
1
1
  import { createInjector } from "../../src/injector";
2
- import { dealoc } from "../../src/jqLite";
2
+ import { dealoc, jqLite } from "../../src/jqLite";
3
3
  import { publishExternalAPI } from "../../src/public";
4
4
 
5
5
  describe("ngChange", () => {
@@ -18,6 +18,7 @@ describe("ngClass", () => {
18
18
 
19
19
  afterEach(() => {
20
20
  dealoc(element);
21
+ jqLite.CACHE.clear();
21
22
  });
22
23
 
23
24
  it("should add new and remove old classes dynamically", () => {
@@ -1,4 +1,4 @@
1
- import { dealoc } from "../../src/jqLite";
1
+ import { dealoc, jqLite } from "../../src/jqLite";
2
2
  import { publishExternalAPI } from "../../src/public";
3
3
  import { createInjector } from "../../src/injector";
4
4
 
@@ -17,6 +17,7 @@ describe("ngClick", () => {
17
17
 
18
18
  afterEach(() => {
19
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
20
21
  });
21
22
 
22
23
  it("should get called on a click", () => {
@@ -1,5 +1,4 @@
1
1
  import { dealoc, jqLite } from "../../src/jqLite";
2
- import { setupModuleLoader } from "../../src/loader";
3
2
  import { publishExternalAPI } from "../../src/public";
4
3
  import { createInjector } from "../../src/injector";
5
4
 
@@ -10,7 +9,6 @@ describe("ngCloak", () => {
10
9
  let injector;
11
10
 
12
11
  beforeEach(() => {
13
- setupModuleLoader(window);
14
12
  publishExternalAPI();
15
13
  injector = createInjector(["ng"]);
16
14
  $compile = injector.get("$compile");
@@ -19,6 +17,7 @@ describe("ngCloak", () => {
19
17
 
20
18
  afterEach(() => {
21
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
22
21
  });
23
22
 
24
23
  it("should get removed when an element is compiled", () => {
@@ -64,6 +64,7 @@ describe("ngController", () => {
64
64
 
65
65
  afterEach(() => {
66
66
  dealoc(element);
67
+ jqLite.CACHE.clear();
67
68
  });
68
69
 
69
70
  it("should instantiate controller and bind methods", () => {
@@ -17,6 +17,7 @@ describe("style", () => {
17
17
 
18
18
  afterEach(() => {
19
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
20
21
  });
21
22
 
22
23
  it("should compile style element without binding", () => {
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
  import { Angular } from "../../src/loader";
5
5
 
6
6
  describe("event directives", () => {
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
  import { isDefined } from "../../src/shared/utils";
5
5
 
6
6
  describe("ngHref", () => {
@@ -22,6 +22,7 @@ describe("ngHref", () => {
22
22
 
23
23
  afterEach(() => {
24
24
  dealoc(element);
25
+ jqLite.CACHE.clear();
25
26
  });
26
27
 
27
28
  it("should interpolate the expression and bind to href", () => {
@@ -22,6 +22,7 @@ describe("ngInit", () => {
22
22
 
23
23
  afterEach(() => {
24
24
  dealoc(element);
25
+ jqLite.CACHE.clear();
25
26
  });
26
27
 
27
28
  it("should init model", () => {