@angular-wave/angular.ts 0.0.25 → 0.0.27
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/CHANGELOG.md +1 -1
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/index.html +4 -4
- package/legacy/angular.js +6 -6
- package/package.json +1 -1
- package/src/core/compile.md +2 -2
- package/src/directive/cloak.md +2 -2
- package/src/directive/repeat.md +1 -1
- package/src/router/globals.js +0 -5
- package/src/router/params/param-types.js +0 -3
- package/src/router/router.js +5 -53
- package/src/router/services.js +2 -4
- package/src/router/state/state-queue-manager.js +0 -3
- package/src/router/state/state-registry.js +0 -5
- package/src/router/state/state-service.js +0 -4
- package/src/router/transition/transition-hook.js +1 -8
- package/src/router/transition/transition-service.js +0 -12
- package/src/router/url/url-config.js +7 -7
- package/src/router/url/url-router.js +1 -1
- package/src/router/url/url-rules.js +0 -4
- package/src/router/url/url-service.js +113 -80
- package/src/shared/utils.js +1 -1
- package/test/angular.spec.js +4 -4
- package/test/core/compile.spec.js +9 -9
- package/test/core/interval.spec.js +1 -1
- package/test/core/on.spec.js +2 -2
- package/test/core/prop.spec.js +2 -2
- package/test/directive/ref.spec.js +1 -1
- package/test/router/state-directives.spec.js +72 -72
- package/test/router/state.spec.js +12 -8
- 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 +11 -11
- package/test/router/view-scroll.spec.js +2 -2
- package/test/router/view.spec.js +1 -1
- package/src/router/location-services.js +0 -67
package/src/shared/utils.js
CHANGED
|
@@ -1117,7 +1117,7 @@ export function encodeUriQuery(val, pctEncodeSpaces) {
|
|
|
1117
1117
|
.replace(/%20/g, pctEncodeSpaces ? "%20" : "+");
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
|
-
export const ngAttrPrefixes = ["ng-", "data-ng-"
|
|
1120
|
+
export const ngAttrPrefixes = ["ng-", "data-ng-"];
|
|
1121
1121
|
|
|
1122
1122
|
export function getNgAttribute(element, ngAttr) {
|
|
1123
1123
|
let attr;
|
package/test/angular.spec.js
CHANGED
|
@@ -1609,15 +1609,15 @@ describe("angular", () => {
|
|
|
1609
1609
|
|
|
1610
1610
|
it("should look for ngApp directive using querySelectorAll", () => {
|
|
1611
1611
|
window.angular.module("ABC", []);
|
|
1612
|
-
const appElement = jqLite('<div
|
|
1613
|
-
element.querySelector["[
|
|
1612
|
+
const appElement = jqLite('<div ng-app="ABC"></div>')[0];
|
|
1613
|
+
element.querySelector["[ng-app]"] = appElement;
|
|
1614
1614
|
angularInit(element);
|
|
1615
1615
|
expect(bootstrapSpy).toHaveBeenCalled();
|
|
1616
1616
|
});
|
|
1617
1617
|
|
|
1618
1618
|
it("should bootstrap anonymously", () => {
|
|
1619
|
-
const appElement = jqLite("<div
|
|
1620
|
-
element.querySelector["[
|
|
1619
|
+
const appElement = jqLite("<div ng-app></div>")[0];
|
|
1620
|
+
element.querySelector["[ng-app]"] = appElement;
|
|
1621
1621
|
angularInit(element);
|
|
1622
1622
|
expect(bootstrapSpy).toHaveBeenCalled();
|
|
1623
1623
|
});
|
|
@@ -422,7 +422,7 @@ describe("$compile", () => {
|
|
|
422
422
|
expect(el.data("hasCompiled")).toBe(true);
|
|
423
423
|
});
|
|
424
424
|
|
|
425
|
-
it("compiles attribute directives with
|
|
425
|
+
it("compiles attribute directives with ng-attr prefix", () => {
|
|
426
426
|
myModule.directive("myDirective", () => {
|
|
427
427
|
return {
|
|
428
428
|
restrict: "EA",
|
|
@@ -432,7 +432,7 @@ describe("$compile", () => {
|
|
|
432
432
|
};
|
|
433
433
|
});
|
|
434
434
|
reloadModules();
|
|
435
|
-
var el = $("<div
|
|
435
|
+
var el = $("<div ng-attr-my-directive></div>");
|
|
436
436
|
$compile(el);
|
|
437
437
|
expect(el.data("hasCompiled")).toBe(true);
|
|
438
438
|
});
|
|
@@ -16579,11 +16579,11 @@ describe("$compile", () => {
|
|
|
16579
16579
|
expect(element.attr("href")).toBe("test/test");
|
|
16580
16580
|
});
|
|
16581
16581
|
|
|
16582
|
-
it("should work if they are prefixed with
|
|
16582
|
+
it("should work if they are prefixed with or data- and different prefixes", () => {
|
|
16583
16583
|
$rootScope.name = "Misko";
|
|
16584
16584
|
element = $compile(
|
|
16585
|
-
'<span data-ng-attr-test2="{{name}}"
|
|
16586
|
-
'
|
|
16585
|
+
'<span data-ng-attr-test2="{{name}}" ng-attr-test3="{{name}}" data-ng:attr-test4="{{name}}" ' +
|
|
16586
|
+
'ng-attr-test5="{{name}}" ng-attr-test6="{{name}}"></span>',
|
|
16587
16587
|
)($rootScope);
|
|
16588
16588
|
expect(element.attr("test2")).toBeUndefined();
|
|
16589
16589
|
expect(element.attr("test3")).toBeUndefined();
|
|
@@ -16661,7 +16661,7 @@ describe("$compile", () => {
|
|
|
16661
16661
|
it("should work if they are prefixed with x- or data-", () => {
|
|
16662
16662
|
$rootScope.name = "JamieMason";
|
|
16663
16663
|
element = $compile(
|
|
16664
|
-
'<span data-ng-attr-dash-test2="{{name}}"
|
|
16664
|
+
'<span data-ng-attr-dash-test2="{{name}}" ng-attr-dash-test3="{{name}}" data-ng:attr-dash-test4="{{name}}"></span>',
|
|
16665
16665
|
)($rootScope);
|
|
16666
16666
|
expect(element.attr("dash-test2")).toBeUndefined();
|
|
16667
16667
|
expect(element.attr("dash-test3")).toBeUndefined();
|
|
@@ -16880,7 +16880,7 @@ describe("$compile", () => {
|
|
|
16880
16880
|
$rootScope.scale = 1;
|
|
16881
16881
|
element = $compile(
|
|
16882
16882
|
'<svg data-ng-attr-view_box="{{dimensions}}">' +
|
|
16883
|
-
'<filter
|
|
16883
|
+
'<filter ng-attr-filter_units="{{number}}">' +
|
|
16884
16884
|
'<feDiffuseLighting data-ng:attr_surface_scale="{{scale}}">' +
|
|
16885
16885
|
"</feDiffuseLighting>" +
|
|
16886
16886
|
'<feSpecularLighting x-ng:attr_surface_scale="{{scale}}">' +
|
|
@@ -17213,8 +17213,8 @@ describe("$compile", () => {
|
|
|
17213
17213
|
"<div>" +
|
|
17214
17214
|
'<span data-ng-show-start="show"></span>' +
|
|
17215
17215
|
"<span data-ng-show-end></span>" +
|
|
17216
|
-
'<span
|
|
17217
|
-
"<span
|
|
17216
|
+
'<span ng-show-start="show"></span>' +
|
|
17217
|
+
"<span ng-show-end></span>" +
|
|
17218
17218
|
"</div>",
|
|
17219
17219
|
)($rootScope);
|
|
17220
17220
|
$rootScope.$digest();
|
package/test/core/on.spec.js
CHANGED
|
@@ -79,8 +79,8 @@ describe("ngOn* event binding", () => {
|
|
|
79
79
|
it("should work if they are prefixed with x- or data- and different prefixes", () => {
|
|
80
80
|
const cb = ($rootScope.cb = jasmine.createSpy("ng-on cb"));
|
|
81
81
|
const element = $compile(
|
|
82
|
-
'<span data-ng-on-test2="cb(2)"
|
|
83
|
-
'
|
|
82
|
+
'<span data-ng-on-test2="cb(2)" ng-on-test3="cb(3)" data-ng:on-test4="cb(4)" ' +
|
|
83
|
+
'ng-on-test5="cb(5)" ng-on-test6="cb(6)"></span>',
|
|
84
84
|
)($rootScope);
|
|
85
85
|
|
|
86
86
|
element.triggerHandler("test2");
|
package/test/core/prop.spec.js
CHANGED
|
@@ -139,8 +139,8 @@ describe("ngProp*", () => {
|
|
|
139
139
|
it("should work if they are prefixed with x- or data- and different prefixes", () => {
|
|
140
140
|
$rootScope.name = "Misko";
|
|
141
141
|
const element = $compile(
|
|
142
|
-
'<span data-ng-prop-test2="name"
|
|
143
|
-
'
|
|
142
|
+
'<span data-ng-prop-test2="name" ng-prop-test3="name" data-ng:prop-test4="name" ' +
|
|
143
|
+
'ng-prop-test5="name" ng-prop-test6="name"></span>',
|
|
144
144
|
)($rootScope);
|
|
145
145
|
expect(element[0].test2).toBe("Misko");
|
|
146
146
|
expect(element[0].test3).toBe("Misko");
|
|
@@ -111,7 +111,7 @@ describe("ngRef", () => {
|
|
|
111
111
|
// });
|
|
112
112
|
|
|
113
113
|
// it("should work with x-non-normalized attribute name", () => {
|
|
114
|
-
// $compile('<my-component
|
|
114
|
+
// $compile('<my-component ng-ref="myComponent2"></my-component>')(
|
|
115
115
|
// $rootScope,
|
|
116
116
|
// );
|
|
117
117
|
// expect($rootScope.myComponent2).toBe(myComponentController);
|