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 } from "../common/hof" ;
@@ -156,14 +156,14 @@ function runBlock($injector, $q) {
156156
157157app . run ( runBlock ) ;
158158
159- let router : UiRouter = null ;
159+ let router : UIRouter = null ;
160160
161- ng1UiRouter . $inject = [ '$locationProvider' ] ;
161+ ng1UIRouter . $inject = [ '$locationProvider' ] ;
162162/** This angular 1 provider instantiates a Router and exposes its services via the angular injector */
163- function ng1UiRouter ( $locationProvider ) {
163+ function ng1UIRouter ( $locationProvider ) {
164164
165- // Create a new instance of the Router when the ng1UiRouterProvider is initialized
166- router = new UiRouter ( ) ;
165+ // Create a new instance of the Router when the ng1UIRouterProvider is initialized
166+ router = new UIRouter ( ) ;
167167
168168 // Apply ng1 specific StateBuilder code for `views`, `resolve`, and `onExit/Retain/Enter` properties
169169 router . stateRegistry . decorator ( "views" , ng1ViewsBuilder ) ;
@@ -211,17 +211,17 @@ function ng1UiRouter($locationProvider) {
211211 }
212212}
213213
214- function $stateParamsFactory ( ng1UiRouter ) {
215- return ng1UiRouter . globals . params ;
214+ function $stateParamsFactory ( ng1UIRouter ) {
215+ return ng1UIRouter . globals . params ;
216216}
217217
218218// The 'ui.router' ng1 module depends on 'ui.router.init' module.
219- angular . module ( 'ui.router.init' , [ ] ) . provider ( "ng1UiRouter " , < any > ng1UiRouter ) ;
219+ angular . module ( 'ui.router.init' , [ ] ) . provider ( "ng1UIRouter " , < any > ng1UIRouter ) ;
220220// This effectively calls $get() to init when we enter runtime
221- angular . module ( 'ui.router.init' ) . run ( [ 'ng1UiRouter ' , function ( ng1UiRouter ) { } ] ) ;
221+ angular . module ( 'ui.router.init' ) . run ( [ 'ng1UIRouter ' , function ( ng1UIRouter ) { } ] ) ;
222222
223223// $urlMatcherFactory service and $urlMatcherFactoryProvider
224- angular . module ( 'ui.router.util' ) . provider ( '$urlMatcherFactory' , [ 'ng1UiRouterProvider ' , ( ) => router . urlMatcherFactory ] ) ;
224+ angular . module ( 'ui.router.util' ) . provider ( '$urlMatcherFactory' , [ 'ng1UIRouterProvider ' , ( ) => router . urlMatcherFactory ] ) ;
225225angular . module ( 'ui.router.util' ) . run ( [ '$urlMatcherFactory' , function ( $urlMatcherFactory ) { } ] ) ;
226226
227227// $urlRouter service and $urlRouterProvider
@@ -233,7 +233,7 @@ function getUrlRouterProvider() {
233233 } ;
234234 return router . urlRouterProvider ;
235235}
236- angular . module ( 'ui.router.router' ) . provider ( '$urlRouter' , [ 'ng1UiRouterProvider ' , getUrlRouterProvider ] ) ;
236+ angular . module ( 'ui.router.router' ) . provider ( '$urlRouter' , [ 'ng1UIRouterProvider ' , getUrlRouterProvider ] ) ;
237237angular . module ( 'ui.router.router' ) . run ( [ '$urlRouter' , function ( $urlRouter ) { } ] ) ;
238238
239239// $state service and $stateProvider
@@ -246,22 +246,22 @@ function getStateProvider() {
246246 } ;
247247 return router . stateProvider ;
248248}
249- angular . module ( 'ui.router.state' ) . provider ( '$state' , [ 'ng1UiRouterProvider ' , getStateProvider ] ) ;
249+ angular . module ( 'ui.router.state' ) . provider ( '$state' , [ 'ng1UIRouterProvider ' , getStateProvider ] ) ;
250250angular . module ( 'ui.router.state' ) . run ( [ '$state' , function ( $state ) { } ] ) ;
251251
252252// $stateParams service
253- angular . module ( 'ui.router.state' ) . factory ( '$stateParams' , [ 'ng1UiRouter ' , ( ng1UiRouter ) =>
254- ng1UiRouter . globals . params ] ) ;
253+ angular . module ( 'ui.router.state' ) . factory ( '$stateParams' , [ 'ng1UIRouter ' , ( ng1UIRouter ) =>
254+ ng1UIRouter . globals . params ] ) ;
255255
256256// $transitions service and $transitionsProvider
257257function getTransitionsProvider ( ) {
258258 router . transitionService [ "$get" ] = ( ) => router . transitionService ;
259259 return router . transitionService ;
260260}
261- angular . module ( 'ui.router.state' ) . provider ( '$transitions' , [ 'ng1UiRouterProvider ' , getTransitionsProvider ] ) ;
261+ angular . module ( 'ui.router.state' ) . provider ( '$transitions' , [ 'ng1UIRouterProvider ' , getTransitionsProvider ] ) ;
262262
263263// $templateFactory service
264- angular . module ( 'ui.router.util' ) . factory ( '$templateFactory' , [ 'ng1UiRouter ' , ( ) => new TemplateFactory ( ) ] ) ;
264+ angular . module ( 'ui.router.util' ) . factory ( '$templateFactory' , [ 'ng1UIRouter ' , ( ) => new TemplateFactory ( ) ] ) ;
265265
266266// The $view service
267267angular . module ( 'ui.router' ) . factory ( '$view' , ( ) => router . viewService ) ;
@@ -283,16 +283,16 @@ export const getLocals = (ctx: ResolveContext) => {
283283 return tuples . reduce ( applyPairs , { } ) ;
284284} ;
285285
286- /** Adds the angular 1 `$injector` to the `UiInjector ` interface */
286+ /** Adds the angular 1 `$injector` to the `UIInjector ` interface */
287287declare module "../common/interface" {
288288 /**
289- * This enhances the [[common.UiInjector ]] interface by adding the `$injector` service as the [[native]] injector.
289+ * This enhances the [[common.UIInjector ]] interface by adding the `$injector` service as the [[native]] injector.
290290 */
291- interface UiInjector {
291+ interface UIInjector {
292292 /**
293293 * The native Angular 1 `$injector` service
294294 *
295- * When you have access to a `UiInjector `, this property will contain the native `$injector` Angular 1 service.
295+ * When you have access to a `UIInjector `, this property will contain the native `$injector` Angular 1 service.
296296 *
297297 * @example :
298298 * ```js
0 commit comments