@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.
Files changed (37) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/angular-ts.esm.js +1 -1
  3. package/dist/angular-ts.umd.js +1 -1
  4. package/index.html +4 -4
  5. package/legacy/angular.js +6 -6
  6. package/package.json +1 -1
  7. package/src/core/compile.md +2 -2
  8. package/src/directive/cloak.md +2 -2
  9. package/src/directive/repeat.md +1 -1
  10. package/src/router/globals.js +0 -5
  11. package/src/router/params/param-types.js +0 -3
  12. package/src/router/router.js +5 -53
  13. package/src/router/services.js +2 -4
  14. package/src/router/state/state-queue-manager.js +0 -3
  15. package/src/router/state/state-registry.js +0 -5
  16. package/src/router/state/state-service.js +0 -4
  17. package/src/router/transition/transition-hook.js +1 -8
  18. package/src/router/transition/transition-service.js +0 -12
  19. package/src/router/url/url-config.js +7 -7
  20. package/src/router/url/url-router.js +1 -1
  21. package/src/router/url/url-rules.js +0 -4
  22. package/src/router/url/url-service.js +113 -80
  23. package/src/shared/utils.js +1 -1
  24. package/test/angular.spec.js +4 -4
  25. package/test/core/compile.spec.js +9 -9
  26. package/test/core/interval.spec.js +1 -1
  27. package/test/core/on.spec.js +2 -2
  28. package/test/core/prop.spec.js +2 -2
  29. package/test/directive/ref.spec.js +1 -1
  30. package/test/router/state-directives.spec.js +72 -72
  31. package/test/router/state.spec.js +12 -8
  32. package/test/router/template-factory.spec.js +2 -2
  33. package/test/router/view-directive.spec.js +65 -65
  34. package/test/router/view-hook.spec.js +11 -11
  35. package/test/router/view-scroll.spec.js +2 -2
  36. package/test/router/view.spec.js +1 -1
  37. package/src/router/location-services.js +0 -67
@@ -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-", "ng:", "x-ng-"];
1120
+ export const ngAttrPrefixes = ["ng-", "data-ng-"];
1121
1121
 
1122
1122
  export function getNgAttribute(element, ngAttr) {
1123
1123
  let attr;
@@ -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 x-ng-app="ABC"></div>')[0];
1613
- element.querySelector["[x-ng-app]"] = appElement;
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 x-ng-app></div>")[0];
1620
- element.querySelector["[x-ng-app]"] = appElement;
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 data:ng-attr prefix", () => {
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 data:ng-attr-my-directive></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 x- or data- and different prefixes", () => {
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}}" x-ng-attr-test3="{{name}}" data-ng:attr-test4="{{name}}" ' +
16586
- 'x_ng-attr-test5="{{name}}" data:ng-attr-test6="{{name}}"></span>',
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}}" x-ng-attr-dash-test3="{{name}}" data-ng:attr-dash-test4="{{name}}"></span>',
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 x-ng-attr-filter_units="{{number}}">' +
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 x-ng-show-start="show"></span>' +
17217
- "<span x-ng-show-end></span>" +
17216
+ '<span ng-show-start="show"></span>' +
17217
+ "<span ng-show-end></span>" +
17218
17218
  "</div>",
17219
17219
  )($rootScope);
17220
17220
  $rootScope.$digest();
@@ -71,7 +71,7 @@ describe("$interval", () => {
71
71
 
72
72
  $interval(notifySpy, 1, 1, false);
73
73
 
74
- await wait(10);
74
+ await wait(100);
75
75
  expect(notifySpy).toHaveBeenCalled();
76
76
  expect(evalAsyncSpy).not.toHaveBeenCalled();
77
77
  expect(digestSpy).not.toHaveBeenCalled();
@@ -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)" x-ng-on-test3="cb(3)" data-ng:on-test4="cb(4)" ' +
83
- 'x_ng-on-test5="cb(5)" data:ng-on-test6="cb(6)"></span>',
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");
@@ -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" x-ng-prop-test3="name" data-ng:prop-test4="name" ' +
143
- 'x_ng-prop-test5="name" data:ng-prop-test6="name"></span>',
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 x-ng-ref="myComponent2"></my-component>')(
114
+ // $compile('<my-component ng-ref="myComponent2"></my-component>')(
115
115
  // $rootScope,
116
116
  // );
117
117
  // expect($rootScope.myComponent2).toBe(myComponentController);