@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.
- package/README.md +1 -2
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/e2e/unit.spec.ts +2 -1
- package/index.html +8 -9
- package/package.json +1 -1
- package/src/core/pubsub.js +329 -0
- package/src/router/globals.js +0 -5
- package/src/router/hooks/core-resolvables.js +12 -11
- package/src/router/hooks/ignored-transition.js +1 -1
- package/src/router/hooks/lazy-load.js +40 -41
- package/src/router/hooks/redirect-to.js +32 -29
- package/src/router/hooks/update-globals.js +1 -1
- package/src/router/hooks/url.js +33 -24
- package/src/router/hooks/views.js +21 -20
- package/src/router/params/param-factory.js +17 -0
- package/src/router/params/param-types.js +0 -3
- package/src/router/router.js +78 -62
- package/src/router/services.js +2 -4
- package/src/router/state/state-queue-manager.js +5 -7
- package/src/router/state/state-registry.js +8 -10
- package/src/router/state/state-service.js +34 -33
- package/src/router/transition/hook-builder.js +2 -2
- package/src/router/transition/transition-hook.js +3 -9
- package/src/router/transition/transition-service.js +12 -30
- package/src/router/transition/transition.js +28 -25
- package/src/router/url/url-config.js +1 -49
- package/src/router/url/url-matcher-factory.js +10 -51
- package/src/router/url/url-router.js +27 -17
- package/src/router/url/url-rule.js +9 -13
- package/src/router/url/url-rules.js +3 -7
- package/src/router/url/url-service.js +134 -97
- package/src/router/view/view.js +3 -3
- package/src/shared/hof.js +1 -1
- package/test/angular.spec.js +1 -0
- package/test/aria/aria.spec.js +2 -1
- package/test/core/interval.spec.js +1 -1
- package/test/core/pubsub.spec.js +314 -0
- package/test/directive/bind.spec.js +2 -1
- package/test/directive/boolean.spec.js +4 -2
- package/test/directive/change.spec.js +1 -1
- package/test/directive/class.spec.js +1 -0
- package/test/directive/click.spec.js +2 -1
- package/test/directive/cloak.spec.js +1 -2
- package/test/directive/{constoller.spec.js → controller.spec.js} +1 -0
- package/test/directive/element-style.spec.js +1 -0
- package/test/directive/event.spec.js +1 -1
- package/test/directive/href.spec.js +2 -1
- package/test/directive/init.spec.js +1 -0
- package/test/directive/input.spec.js +200 -285
- package/test/directive/list.spec.js +2 -1
- package/test/directive/model.spec.js +1 -0
- package/test/directive/non-bindable.spec.js +2 -1
- package/test/directive/script.spec.js +1 -0
- package/test/directive/scrset.spec.js +2 -1
- package/test/directive/show-hide.spec.js +1 -0
- package/test/directive/src.spec.js +2 -1
- package/test/directive/style.spec.js +1 -0
- package/test/directive/switch.spec.js +2 -1
- package/test/directive/validators.spec.js +1 -1
- package/test/router/state-directives.spec.js +72 -72
- package/test/router/state.spec.js +5 -5
- package/test/router/template-factory.spec.js +2 -2
- package/test/router/view-directive.spec.js +65 -65
- package/test/router/view-hook.spec.js +13 -13
- package/test/router/view-scroll.spec.js +3 -3
- package/test/router/view.spec.js +2 -2
- package/types/router/core/common/coreservices.d.ts +2 -3
- package/types/router/core/globals.d.ts +1 -4
- package/types/router/core/interface.d.ts +2 -8
- package/types/router/core/params/paramTypes.d.ts +0 -1
- package/types/router/core/router.d.ts +2 -3
- package/types/router/core/state/stateQueueManager.d.ts +1 -3
- package/types/router/core/state/stateRegistry.d.ts +0 -2
- package/types/router/core/state/stateService.d.ts +1 -2
- package/types/router/core/transition/interface.d.ts +3 -3
- package/types/router/core/transition/transitionService.d.ts +1 -2
- package/types/router/core/url/urlConfig.d.ts +1 -2
- package/types/router/core/url/urlRules.d.ts +1 -2
- package/types/router/core/url/urlService.d.ts +1 -2
- package/types/router/locationServices.d.ts +0 -1
- 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, $
|
|
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
|
-
|
|
23
|
+
dealoc(element);
|
|
24
|
+
jqLite.CACHE.clear();
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
it("should properly evaluate 0 as false", () => {
|
|
@@ -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", () => {
|
|
@@ -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", () => {
|