@angular-wave/angular.ts 0.0.28 → 0.0.29

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 (47) hide show
  1. package/dist/angular-ts.esm.js +1 -1
  2. package/dist/angular-ts.umd.js +1 -1
  3. package/index.html +6 -5
  4. package/package.json +1 -1
  5. package/src/router/common/trace.js +6 -6
  6. package/src/router/directives/state-directives.js +74 -74
  7. package/src/router/directives/view-directive.js +21 -21
  8. package/src/router/index.js +12 -12
  9. package/src/router/injectables.js +3 -3
  10. package/src/router/router.js +7 -6
  11. package/src/router/services.js +4 -8
  12. package/src/router/state/state-builder.js +1 -0
  13. package/src/router/state/state-registry.js +55 -2
  14. package/src/router/state/state-service.js +16 -25
  15. package/src/router/state/views.js +4 -4
  16. package/src/router/state-filters.js +0 -2
  17. package/src/router/state-provider.js +0 -2
  18. package/src/router/template-factory.js +4 -4
  19. package/src/router/transition/transition-service.js +2 -3
  20. package/src/router/url/url-router.js +4 -0
  21. package/src/router/view/view.js +65 -65
  22. package/src/services/browser.js +1 -5
  23. package/test/core/pubsub.spec.js +73 -0
  24. package/test/module-test.html +5 -5
  25. package/test/original-test.html +3 -3
  26. package/test/router/services.spec.js +1 -1
  27. package/test/router/state-directives.spec.js +72 -80
  28. package/test/router/state-filter.spec.js +6 -4
  29. package/test/router/state.spec.js +15 -13
  30. package/test/router/template-factory.spec.js +4 -4
  31. package/test/router/url-matcher-factory.spec.js +2 -2
  32. package/test/router/view-directive.spec.js +165 -163
  33. package/test/router/view-hook.spec.js +2 -2
  34. package/test/router/view-scroll.spec.js +14 -14
  35. package/test/router/view.spec.js +2 -2
  36. package/types/router/core/state/interface.d.ts +6 -6
  37. package/types/router/core/state/stateRegistry.d.ts +1 -0
  38. package/types/router/core/state/stateService.d.ts +4 -4
  39. package/types/router/core/transition/interface.d.ts +1 -1
  40. package/types/router/core/view/interface.d.ts +2 -2
  41. package/types/router/core/view/view.d.ts +16 -16
  42. package/types/router/directives/viewDirective.d.ts +3 -3
  43. package/types/router/interface.d.ts +4 -4
  44. package/types/router/stateProvider.d.ts +3 -3
  45. package/types/router/statebuilders/views.d.ts +1 -1
  46. package/types/router/templateFactory.d.ts +2 -2
  47. package/types/router/viewScroll.d.ts +1 -1
@@ -25,7 +25,7 @@ describe("view hooks", () => {
25
25
  window.angular = new Angular();
26
26
  publishExternalAPI();
27
27
  app = window.angular
28
- .module("defaultModule", ["ui.router"])
28
+ .module("defaultModule", ["ng.router"])
29
29
  .config(($stateProvider) => {
30
30
  $stateProvider.state({ name: "foo", url: "/foo", component: "foo" });
31
31
  $stateProvider.state({ name: "bar", url: "/bar", component: "bar" });
@@ -47,7 +47,7 @@ describe("view hooks", () => {
47
47
  $state = _$state_;
48
48
  $q = _$q_;
49
49
  $timeout = _$timeout_;
50
- $compile("<div><ui-view></ui-view></div>")($rootScope.$new());
50
+ $compile("<div><ng-view></ng-view></div>")($rootScope.$new());
51
51
  });
52
52
  });
53
53
 
@@ -3,30 +3,30 @@ import { Angular } from "../../src/loader";
3
3
  import { publishExternalAPI } from "../../src/public";
4
4
  import { wait } from "../test-utils";
5
5
 
6
- describe("uiView", () => {
6
+ describe("ngView", () => {
7
7
  describe("scrollIntoView", () => {
8
- let elem, $anchorScroll, $uiViewScroll, $timeout;
8
+ let elem, $anchorScroll, $ngViewScroll, $timeout;
9
9
 
10
10
  beforeEach(() => {
11
11
  dealoc(document.getElementById("dummy"));
12
12
  window.angular = new Angular();
13
13
  publishExternalAPI();
14
- window.angular.module("defaultModule", ["ui.router"]);
14
+ window.angular.module("defaultModule", ["ng.router"]);
15
15
  let $injector = window.angular.bootstrap(
16
16
  document.getElementById("dummy"),
17
17
  ["defaultModule"],
18
18
  );
19
19
 
20
- $injector.invoke((_$uiViewScroll_, _$timeout_, _$anchorScroll_) => {
20
+ $injector.invoke((_$ngViewScroll_, _$timeout_, _$anchorScroll_) => {
21
21
  $anchorScroll = _$anchorScroll_;
22
- $uiViewScroll = _$uiViewScroll_;
22
+ $ngViewScroll = _$ngViewScroll_;
23
23
  $timeout = _$timeout_;
24
24
  });
25
25
  elem = [{ scrollIntoView: jasmine.createSpy("scrollIntoView") }];
26
26
  });
27
27
 
28
28
  it("should scroll element into view after timeout", async () => {
29
- $uiViewScroll(elem);
29
+ $ngViewScroll(elem);
30
30
  expect(elem[0].scrollIntoView).not.toHaveBeenCalled();
31
31
 
32
32
  await wait(100);
@@ -34,7 +34,7 @@ describe("uiView", () => {
34
34
  });
35
35
 
36
36
  it("should return the promise from the timeout", async () => {
37
- const promise = $uiViewScroll(elem);
37
+ const promise = $ngViewScroll(elem);
38
38
 
39
39
  await wait(100);
40
40
  expect(elem[0].scrollIntoView).toHaveBeenCalled();
@@ -43,18 +43,18 @@ describe("uiView", () => {
43
43
  });
44
44
 
45
45
  describe("useAnchorScroll", () => {
46
- let elem, $anchorScroll, $uiViewScroll;
46
+ let elem, $anchorScroll, $ngViewScroll;
47
47
 
48
48
  beforeEach(() => {
49
49
  dealoc(document.getElementById("dummy"));
50
50
  window.angular = new Angular();
51
51
  publishExternalAPI();
52
- let module = window.angular.module("defaultModule", ["ui.router"]);
53
- module.config(($provide, $uiViewScrollProvider) => {
52
+ let module = window.angular.module("defaultModule", ["ng.router"]);
53
+ module.config(($provide, $ngViewScrollProvider) => {
54
54
  $provide.decorator("$anchorScroll", function ($delegate) {
55
55
  return jasmine.createSpy("$anchorScroll");
56
56
  });
57
- $uiViewScrollProvider.useAnchorScroll();
57
+ $ngViewScrollProvider.useAnchorScroll();
58
58
  });
59
59
 
60
60
  let $injector = window.angular.bootstrap(
@@ -62,15 +62,15 @@ describe("uiView", () => {
62
62
  ["defaultModule"],
63
63
  );
64
64
 
65
- $injector.invoke((_$uiViewScroll_, _$anchorScroll_) => {
65
+ $injector.invoke((_$ngViewScroll_, _$anchorScroll_) => {
66
66
  $anchorScroll = _$anchorScroll_;
67
- $uiViewScroll = _$uiViewScroll_;
67
+ $ngViewScroll = _$ngViewScroll_;
68
68
  });
69
69
  elem = [{ scrollIntoView: jasmine.createSpy("scrollIntoView") }];
70
70
  });
71
71
 
72
72
  it("should call $anchorScroll", () => {
73
- $uiViewScroll();
73
+ $ngViewScroll();
74
74
  expect($anchorScroll).toHaveBeenCalled();
75
75
  });
76
76
  });
@@ -32,7 +32,7 @@ describe("view", () => {
32
32
  publishExternalAPI();
33
33
 
34
34
  window.angular
35
- .module("defaultModule", ["ui.router"])
35
+ .module("defaultModule", ["ng.router"])
36
36
  .config(
37
37
  function (
38
38
  _$provide_,
@@ -106,7 +106,7 @@ describe("view", () => {
106
106
 
107
107
  it("uses the controllerProvider to get controller dynamically", async () => {
108
108
  $controllerProvider.register("AcmeFooController", () => {});
109
- elem.append($compile("<div><ui-view></ui-view></div>")(scope));
109
+ elem.append($compile("<div><ng-view></ng-view></div>")(scope));
110
110
 
111
111
  const view = tail(path).views[0];
112
112
  view.load();
@@ -42,20 +42,20 @@ export interface _ViewDeclaration {
42
42
  /**
43
43
  * The normalized address for the `ui-view` which this ViewConfig targets.
44
44
  *
45
- * A ViewConfig targets a `ui-view` in the DOM (relative to the `uiViewContextAnchor`) which has
45
+ * A ViewConfig targets a `ui-view` in the DOM (relative to the `ngViewContextAnchor`) which has
46
46
  * a specific name.
47
47
  * @example `header` or `$default`
48
48
  *
49
- * The `uiViewName` can also target a _nested view_ by providing a dot-notation address
49
+ * The `ngViewName` can also target a _nested view_ by providing a dot-notation address
50
50
  * @example `foo.bar` or `foo.$default.bar`
51
51
  */
52
- $uiViewName?: string;
52
+ $ngViewName?: string;
53
53
  /**
54
- * The normalized context anchor (state name) for the `uiViewName`
54
+ * The normalized context anchor (state name) for the `ngViewName`
55
55
  *
56
- * When targeting a `ui-view`, the `uiViewName` address is anchored to a context name (state name).
56
+ * When targeting a `ui-view`, the `ngViewName` address is anchored to a context name (state name).
57
57
  */
58
- $uiViewContextAnchor?: string;
58
+ $ngViewContextAnchor?: string;
59
59
  /**
60
60
  * A type identifier for the View
61
61
  *
@@ -23,6 +23,7 @@ export declare type StateRegistryListener = (
23
23
  * This API is found at `router.stateRegistry` ([[UIRouter.stateRegistry]])
24
24
  */
25
25
  export declare class StateRegistry {
26
+ init($injector: any): void;
26
27
  private router;
27
28
  private _root;
28
29
  private states;
@@ -99,7 +99,7 @@ export declare class StateService {
99
99
  *
100
100
  * #### Example:
101
101
  * ```js
102
- * let app angular.module('app', ['ui.router']);
102
+ * let app angular.module('app', ['ng.router']);
103
103
  *
104
104
  * app.controller('ctrl', function ($scope, $state) {
105
105
  * $scope.reload = function(){
@@ -123,7 +123,7 @@ export declare class StateService {
123
123
  * ```js
124
124
  * //assuming app application consists of 3 states: 'contacts', 'contacts.detail', 'contacts.detail.item'
125
125
  * //and current state is 'contacts.detail.item'
126
- * let app angular.module('app', ['ui.router']);
126
+ * let app angular.module('app', ['ng.router']);
127
127
  *
128
128
  * app.controller('ctrl', function ($scope, $state) {
129
129
  * $scope.reload = function(){
@@ -149,7 +149,7 @@ export declare class StateService {
149
149
  *
150
150
  * #### Example:
151
151
  * ```js
152
- * let app = angular.module('app', ['ui.router']);
152
+ * let app = angular.module('app', ['ng.router']);
153
153
  *
154
154
  * app.controller('ctrl', function ($scope, $state) {
155
155
  * $scope.changeState = function () {
@@ -202,7 +202,7 @@ export declare class StateService {
202
202
  *
203
203
  * #### Example:
204
204
  * ```js
205
- * let app = angular.module('app', ['ui.router']);
205
+ * let app = angular.module('app', ['ng.router']);
206
206
  *
207
207
  * app.controller('ctrl', function ($scope, $state) {
208
208
  * $scope.changeState = function () {
@@ -9,7 +9,7 @@ import { RegisteredHook } from "./hookRegistry";
9
9
  * The TransitionOptions object can be used to change the behavior of a transition.
10
10
  *
11
11
  * It is passed as the third argument to [[StateService.go]], [[StateService.transitionTo]].
12
- * It can also be used with a `uiSref`.
12
+ * It can also be used with a `ngSref`.
13
13
  */
14
14
  export interface TransitionOptions {
15
15
  /**
@@ -31,8 +31,8 @@ export interface ActiveUIView {
31
31
  * with the `ViewConfig`. The `ui-view` then loads itself using the information found in the `ViewConfig`.
32
32
  *
33
33
  * A `ViewConfig` if matched with a `ui-view` by finding all `ui-view`s which were created in the
34
- * context named by the `uiViewContextAnchor`, and finding the `ui-view` or child `ui-view` that matches
35
- * the `uiViewName` address.
34
+ * context named by the `ngViewContextAnchor`, and finding the `ui-view` or child `ui-view` that matches
35
+ * the `ngViewName` address.
36
36
  */
37
37
  export interface ViewConfig {
38
38
  $id: number;
@@ -10,14 +10,14 @@ export declare type ViewConfigFactory = (
10
10
  export interface ViewServicePluginAPI {
11
11
  _rootViewContext(context?: ViewContext): ViewContext;
12
12
  _viewConfigFactory(viewType: string, factory: ViewConfigFactory): any;
13
- /** @param id router.$id + "." + uiView.id */
13
+ /** @param id router.$id + "." + ngView.id */
14
14
  _registeredUIView(id: string): ActiveUIView;
15
15
  _registeredUIViews(): ActiveUIView[];
16
16
  _activeViewConfigs(): ViewConfig[];
17
17
  _onSync(listener: ViewSyncListener): Function;
18
18
  }
19
19
  export interface ViewTuple {
20
- uiView: ActiveUIView;
20
+ ngView: ActiveUIView;
21
21
  viewConfig: ViewConfig;
22
22
  }
23
23
  export interface ViewSyncListener {
@@ -41,7 +41,7 @@ export interface ViewSyncListener {
41
41
  */
42
42
  export declare class ViewService {
43
43
  private router;
44
- /** @internal */ private _uiViews;
44
+ /** @internal */ private _ngViews;
45
45
  /** @internal */ private _viewConfigs;
46
46
  /** @internal */ private _rootContext;
47
47
  /** @internal */ private _viewConfigFactories;
@@ -81,7 +81,7 @@ export declare class ViewService {
81
81
  * </ui-view>
82
82
  * </ui-view>
83
83
  *
84
- * uiViews: [
84
+ * ngViews: [
85
85
  * { fqn: "$default", creationContext: { name: "" } },
86
86
  * { fqn: "$default.foo", creationContext: { name: "A" } },
87
87
  * { fqn: "$default.foo.$default", creationContext: { name: "A.B" } }
@@ -90,10 +90,10 @@ export declare class ViewService {
90
90
  *
91
91
  * These four view configs all match the ui-view with the fqn: "$default.foo.$default.bar":
92
92
  *
93
- * - ViewConfig1: { uiViewName: "bar", uiViewContextAnchor: "A.B.C" }
94
- * - ViewConfig2: { uiViewName: "$default.bar", uiViewContextAnchor: "A.B" }
95
- * - ViewConfig3: { uiViewName: "foo.$default.bar", uiViewContextAnchor: "A" }
96
- * - ViewConfig4: { uiViewName: "$default.foo.$default.bar", uiViewContextAnchor: "" }
93
+ * - ViewConfig1: { ngViewName: "bar", ngViewContextAnchor: "A.B.C" }
94
+ * - ViewConfig2: { ngViewName: "$default.bar", ngViewContextAnchor: "A.B" }
95
+ * - ViewConfig3: { ngViewName: "foo.$default.bar", ngViewContextAnchor: "A" }
96
+ * - ViewConfig4: { ngViewName: "$default.foo.$default.bar", ngViewContextAnchor: "" }
97
97
  *
98
98
  * Using ViewConfig3 as an example, it matches the ui-view with fqn "$default.foo.$default.bar" because:
99
99
  * - The ViewConfig's segmented target name is: [ "foo", "$default", "bar" ]
@@ -106,26 +106,26 @@ export declare class ViewService {
106
106
  * @internal
107
107
  */
108
108
  static matches: (
109
- uiViewsByFqn: TypedMap<ActiveUIView>,
110
- uiView: ActiveUIView,
109
+ ngViewsByFqn: TypedMap<ActiveUIView>,
110
+ ngView: ActiveUIView,
111
111
  ) => (viewConfig: ViewConfig) => boolean;
112
112
  /**
113
113
  * Normalizes a view's name from a state.views configuration block.
114
114
  *
115
115
  * This should be used by a framework implementation to calculate the values for
116
- * [[_ViewDeclaration.$uiViewName]] and [[_ViewDeclaration.$uiViewContextAnchor]].
116
+ * [[_ViewDeclaration.$ngViewName]] and [[_ViewDeclaration.$ngViewContextAnchor]].
117
117
  *
118
118
  * @param context the context object (state declaration) that the view belongs to
119
119
  * @param rawViewName the name of the view, as declared in the [[StateDeclaration.views]]
120
120
  *
121
- * @returns the normalized uiViewName and uiViewContextAnchor that the view targets
121
+ * @returns the normalized ngViewName and ngViewContextAnchor that the view targets
122
122
  */
123
123
  static normalizeUIViewTarget(
124
124
  context: ViewContext,
125
125
  rawViewName?: string,
126
126
  ): {
127
- uiViewName: string;
128
- uiViewContextAnchor: string;
127
+ ngViewName: string;
128
+ ngViewContextAnchor: string;
129
129
  };
130
130
  /** @internal */
131
131
  constructor(/** @internal */ router: UIRouter);
@@ -157,10 +157,10 @@ export declare class ViewService {
157
157
  * Note: There is no corresponding `deregisterUIView`.
158
158
  * A `ui-view` should hang on to the return value of `registerUIView` and invoke it to deregister itself.
159
159
  *
160
- * @param uiView The metadata for a UIView
160
+ * @param ngView The metadata for a UIView
161
161
  * @return a de-registration function used when the view is destroyed.
162
162
  */
163
- registerUIView(uiView: ActiveUIView): () => void;
163
+ registerUIView(ngView: ActiveUIView): () => void;
164
164
  /**
165
165
  * Returns the list of views currently available on the page, by fully-qualified name.
166
166
  *
@@ -6,7 +6,7 @@ import { Ng1ViewConfig } from "../statebuilders/views";
6
6
  /** @hidden */
7
7
  export declare type UIViewData = {
8
8
  $cfg: Ng1ViewConfig;
9
- $uiView: ActiveUIView;
9
+ $ngView: ActiveUIView;
10
10
  };
11
11
  /** @hidden */
12
12
  export declare type UIViewAnimData = {
@@ -27,7 +27,7 @@ export declare type UIViewAnimData = {
27
27
  * The ui-view can be targeted in a View using the name ([[Ng1StateDeclaration.views]]).
28
28
  *
29
29
  * - `autoscroll`: an expression. When it evaluates to true, the `ui-view` will be scrolled into view when it is activated.
30
- * Uses [[$uiViewScroll]] to do the scrolling.
30
+ * Uses [[$ngViewScroll]] to do the scrolling.
31
31
  *
32
32
  * - `onload`: Expression to evaluate whenever the view updates.
33
33
  *
@@ -141,4 +141,4 @@ export declare type UIViewAnimData = {
141
141
  * });
142
142
  * ```
143
143
  */
144
- export declare let uiView: IDirective;
144
+ export declare let ngView: IDirective;
@@ -251,7 +251,7 @@ export interface Ng1ViewDeclaration extends _ViewDeclaration {
251
251
  * A property of [[Ng1StateDeclaration]] or [[Ng1ViewDeclaration]]:
252
252
  *
253
253
  * The controller function, or the name of a registered controller. The controller function will be used
254
- * to control the contents of the [[directives.uiView]] directive.
254
+ * to control the contents of the [[directives.ngView]] directive.
255
255
  *
256
256
  * If specified as a string, controllerAs can be declared here, i.e., "FooController as foo" instead of in
257
257
  * a separate [[controllerAs]] property.
@@ -310,7 +310,7 @@ export interface Ng1ViewDeclaration extends _ViewDeclaration {
310
310
  * A property of [[Ng1StateDeclaration]] or [[Ng1ViewDeclaration]]:
311
311
  *
312
312
  * HTML template as a string, or a function which returns an html template as a string.
313
- * This template will be used to render the corresponding [[directives.uiView]] directive.
313
+ * This template will be used to render the corresponding [[directives.ngView]] directive.
314
314
  *
315
315
  * This property takes precedence over templateUrl.
316
316
  *
@@ -335,7 +335,7 @@ export interface Ng1ViewDeclaration extends _ViewDeclaration {
335
335
  * A property of [[Ng1StateDeclaration]] or [[Ng1ViewDeclaration]]:
336
336
  *
337
337
  * A path or a function that returns a path to an html template.
338
- * The template will be fetched and used to render the corresponding [[directives.uiView]] directive.
338
+ * The template will be fetched and used to render the corresponding [[directives.ngView]] directive.
339
339
  *
340
340
  * If `templateUrl` is a function, it will be called with the Transition parameters as the first argument.
341
341
  *
@@ -358,7 +358,7 @@ export interface Ng1ViewDeclaration extends _ViewDeclaration {
358
358
  * A property of [[Ng1StateDeclaration]] or [[Ng1ViewDeclaration]]:
359
359
  *
360
360
  * Injected function which returns the HTML template.
361
- * The template will be used to render the corresponding [[directives.uiView]] directive.
361
+ * The template will be used to render the corresponding [[directives.ngView]] directive.
362
362
  *
363
363
  * #### Example:
364
364
  * ```js
@@ -56,7 +56,7 @@ export declare class StateProvider {
56
56
  * - **parent** `{object}` - returns the parent state object.
57
57
  * - **data** `{object}` - returns state data, including any inherited data that is not
58
58
  * overridden by own values (if any).
59
- * - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}
59
+ * - **url** `{object}` - returns a {@link ng.router.util.type:UrlMatcher UrlMatcher}
60
60
  * or `null`.
61
61
  * - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is
62
62
  * navigable).
@@ -127,7 +127,7 @@ export declare class StateProvider {
127
127
  * <a id='template'></a>
128
128
  *
129
129
  * - **`template`** - {string|function=} - html template as a string or a function that returns
130
- * an html template as a string which should be used by the uiView directives. This property
130
+ * an html template as a string which should be used by the ngView directives. This property
131
131
  * takes precedence over templateUrl.
132
132
  *
133
133
  * If `template` is a function, it will be called with the following parameters:
@@ -138,7 +138,7 @@ export declare class StateProvider {
138
138
  * <a id='templateUrl'></a>
139
139
  *
140
140
  * - **`templateUrl`** - {string|function=} - path or function that returns a path to an html
141
- * template that should be used by uiView.
141
+ * template that should be used by ngView.
142
142
  *
143
143
  * If `templateUrl` is a function, it will be called with the following parameters:
144
144
  *
@@ -41,7 +41,7 @@ export declare class Ng1ViewConfig implements ViewConfig {
41
41
  factory: TemplateFactory,
42
42
  );
43
43
  load(): Promise<this>;
44
- getTemplate: (uiView: any, context: ResolveContext) => string;
44
+ getTemplate: (ngView: any, context: ResolveContext) => string;
45
45
  /**
46
46
  * Gets the controller for a view configuration.
47
47
  *
@@ -89,14 +89,14 @@ export declare class TemplateFactory implements TemplateFactoryProvider {
89
89
  * It analyses the component's bindings, then constructs a template that instantiates the component.
90
90
  * The template wires input and output bindings to resolves or from the parent component.
91
91
  *
92
- * @param uiView {object} The parent ui-view (for binding outputs to callbacks)
92
+ * @param ngView {object} The parent ui-view (for binding outputs to callbacks)
93
93
  * @param context The ResolveContext (for binding outputs to callbacks returned from resolves)
94
94
  * @param component {string} Component's name in camel case.
95
95
  * @param bindings An object defining the component's bindings: {foo: '<'}
96
96
  * @return {string} The template as a string: "<component-name input1='::$resolve.foo'></component-name>".
97
97
  */
98
98
  makeComponentTemplate(
99
- uiView: IAugmentedJQuery,
99
+ ngView: IAugmentedJQuery,
100
100
  context: ResolveContext,
101
101
  component: string,
102
102
  bindings?: any,
@@ -2,7 +2,7 @@ export interface UIViewScrollProvider {
2
2
  /**
3
3
  * Uses standard anchorScroll behavior
4
4
  *
5
- * Reverts [[$uiViewScroll]] back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
5
+ * Reverts [[$ngViewScroll]] back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
6
6
  * service for scrolling based on the url anchor.
7
7
  */
8
8
  useAnchorScroll(): void;