@@ -31,7 +31,7 @@ const DEFAULT_PORTS: {[key: string]: number} = {
3131 * @publicApi
3232 */
3333export class $locationShim {
34- private initalizing = true ;
34+ private initializing = true ;
3535 private updateBrowser = false ;
3636 private $$absUrl : string = '' ;
3737 private $$url : string = '' ;
@@ -151,7 +151,7 @@ export class $locationShim {
151151 this . setBrowserUrlWithFallback ( oldUrl , false , oldState ) ;
152152 this . $$notifyChangeListeners ( this . url ( ) , this . $$state , oldUrl , oldState ) ;
153153 } else {
154- this . initalizing = false ;
154+ this . initializing = false ;
155155 $rootScope . $broadcast ( '$locationChangeSuccess' , newUrl , oldUrl , newState , oldState ) ;
156156 this . resetBrowserUpdate ( ) ;
157157 }
@@ -162,7 +162,7 @@ export class $locationShim {
162162
163163 // update browser
164164 $rootScope . $watch ( ( ) => {
165- if ( this . initalizing || this . updateBrowser ) {
165+ if ( this . initializing || this . updateBrowser ) {
166166 this . updateBrowser = false ;
167167
168168 const oldUrl = this . browserUrl ( ) ;
@@ -177,8 +177,8 @@ export class $locationShim {
177177 // next tick (thus inside $evalAsync()) in order for listeners to be registered
178178 // before the event fires. Mimicing behavior from $locationWatch:
179179 // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983
180- if ( this . initalizing || urlOrStateChanged ) {
181- this . initalizing = false ;
180+ if ( this . initializing || urlOrStateChanged ) {
181+ this . initializing = false ;
182182
183183 $rootScope . $evalAsync ( ( ) => {
184184 // Get the new URL again since it could have changed due to async update
@@ -196,8 +196,8 @@ export class $locationShim {
196196 this . $$parse ( oldUrl ) ;
197197 this . $$state = oldState ;
198198 } else {
199- // This block doesn't run when initalizing because it's going to perform the update to
200- // the URL which shouldn't be needed when initalizing .
199+ // This block doesn't run when initializing because it's going to perform the update
200+ // to the URL which shouldn't be needed when initializing .
201201 if ( urlOrStateChanged ) {
202202 this . setBrowserUrlWithFallback (
203203 newUrl , currentReplace , oldState === this . $$state ? null : this . $$state ) ;
@@ -706,7 +706,7 @@ export class $locationShim {
706706
707707/**
708708 * The factory function used to create an instance of the `$locationShim` in Angular,
709- * and provides an API-compatiable `$locationProvider` for AngularJS.
709+ * and provides an API-compatible `$locationProvider` for AngularJS.
710710 *
711711 * @publicApi
712712 */
0 commit comments