33 *
44 * - Provides an implementation for the [[CoreServices]] API, based on angular 1 services.
55 * - Also registers some services with the angular 1 injector.
6- * - Creates and bootstraps a new [[UIRouter ]] object. Ties it to the the angular 1 lifecycle.
6+ * - Creates and bootstraps a new [[UiRouter ]] object. Ties it to the the angular 1 lifecycle.
77 *
88 * @module ng1
99 * @preferred
1010 */
1111
1212/** for typedoc */
13- import { UIRouter } from "../router" ;
13+ import { UiRouter } from "../router" ;
1414import { services } from "../common/coreservices" ;
1515import { bindFunctions , removeFrom , applyPairs } from "../common/common" ;
1616import { prop , propEq } from "../common/hof" ;
@@ -157,14 +157,14 @@ function runBlock($injector, $q) {
157157
158158app . run ( runBlock ) ;
159159
160- let router : UIRouter = null ;
160+ let router : UiRouter = null ;
161161
162- ng1UIRouter . $inject = [ '$locationProvider' ] ;
162+ ng1UiRouter . $inject = [ '$locationProvider' ] ;
163163/** This angular 1 provider instantiates a Router and exposes its services via the angular injector */
164- function ng1UIRouter ( $locationProvider ) {
164+ function ng1UiRouter ( $locationProvider ) {
165165
166- // Create a new instance of the Router when the ng1UIRouterProvider is initialized
167- router = new UIRouter ( ) ;
166+ // Create a new instance of the Router when the ng1UiRouterProvider is initialized
167+ router = new UiRouter ( ) ;
168168
169169 // Apply ng1 specific StateBuilder code for `views`, `resolve`, and `onExit/Retain/Enter` properties
170170 router . stateRegistry . decorator ( "views" , ng1ViewsBuilder ) ;
@@ -212,17 +212,17 @@ function ng1UIRouter($locationProvider) {
212212 }
213213}
214214
215- function $stateParamsFactory ( ng1UIRouter ) {
216- return ng1UIRouter . globals . params ;
215+ function $stateParamsFactory ( ng1UiRouter ) {
216+ return ng1UiRouter . globals . params ;
217217}
218218
219219// The 'ui.router' ng1 module depends on 'ui.router.init' module.
220- angular . module ( 'ui.router.init' , [ ] ) . provider ( "ng1UIRouter " , < any > ng1UIRouter ) ;
220+ angular . module ( 'ui.router.init' , [ ] ) . provider ( "ng1UiRouter " , < any > ng1UiRouter ) ;
221221// This effectively calls $get() to init when we enter runtime
222- angular . module ( 'ui.router.init' ) . run ( [ 'ng1UIRouter ' , function ( ng1UIRouter ) { } ] ) ;
222+ angular . module ( 'ui.router.init' ) . run ( [ 'ng1UiRouter ' , function ( ng1UiRouter ) { } ] ) ;
223223
224224// $urlMatcherFactory service and $urlMatcherFactoryProvider
225- angular . module ( 'ui.router.util' ) . provider ( '$urlMatcherFactory' , [ 'ng1UIRouterProvider ' , ( ) => router . urlMatcherFactory ] ) ;
225+ angular . module ( 'ui.router.util' ) . provider ( '$urlMatcherFactory' , [ 'ng1UiRouterProvider ' , ( ) => router . urlMatcherFactory ] ) ;
226226angular . module ( 'ui.router.util' ) . run ( [ '$urlMatcherFactory' , function ( $urlMatcherFactory ) { } ] ) ;
227227
228228// $urlRouter service and $urlRouterProvider
@@ -234,7 +234,7 @@ function getUrlRouterProvider() {
234234 } ;
235235 return router . urlRouterProvider ;
236236}
237- angular . module ( 'ui.router.router' ) . provider ( '$urlRouter' , [ 'ng1UIRouterProvider ' , getUrlRouterProvider ] ) ;
237+ angular . module ( 'ui.router.router' ) . provider ( '$urlRouter' , [ 'ng1UiRouterProvider ' , getUrlRouterProvider ] ) ;
238238angular . module ( 'ui.router.router' ) . run ( [ '$urlRouter' , function ( $urlRouter ) { } ] ) ;
239239
240240// $state service and $stateProvider
@@ -247,22 +247,22 @@ function getStateProvider() {
247247 } ;
248248 return router . stateProvider ;
249249}
250- angular . module ( 'ui.router.state' ) . provider ( '$state' , [ 'ng1UIRouterProvider ' , getStateProvider ] ) ;
250+ angular . module ( 'ui.router.state' ) . provider ( '$state' , [ 'ng1UiRouterProvider ' , getStateProvider ] ) ;
251251angular . module ( 'ui.router.state' ) . run ( [ '$state' , function ( $state ) { } ] ) ;
252252
253253// $stateParams service
254- angular . module ( 'ui.router.state' ) . factory ( '$stateParams' , [ 'ng1UIRouter ' , ( ng1UIRouter ) =>
255- ng1UIRouter . globals . params ] ) ;
254+ angular . module ( 'ui.router.state' ) . factory ( '$stateParams' , [ 'ng1UiRouter ' , ( ng1UiRouter ) =>
255+ ng1UiRouter . globals . params ] ) ;
256256
257257// $transitions service and $transitionsProvider
258258function getTransitionsProvider ( ) {
259259 router . transitionService [ "$get" ] = ( ) => router . transitionService ;
260260 return router . transitionService ;
261261}
262- angular . module ( 'ui.router.state' ) . provider ( '$transitions' , [ 'ng1UIRouterProvider ' , getTransitionsProvider ] ) ;
262+ angular . module ( 'ui.router.state' ) . provider ( '$transitions' , [ 'ng1UiRouterProvider ' , getTransitionsProvider ] ) ;
263263
264264// $templateFactory service
265- angular . module ( 'ui.router.util' ) . factory ( '$templateFactory' , [ 'ng1UIRouter ' , ( ) => new TemplateFactory ( ) ] ) ;
265+ angular . module ( 'ui.router.util' ) . factory ( '$templateFactory' , [ 'ng1UiRouter ' , ( ) => new TemplateFactory ( ) ] ) ;
266266
267267// The $view service
268268angular . module ( 'ui.router' ) . factory ( '$view' , ( ) => router . viewService ) ;
0 commit comments