Skip to content

Instantly share code, notes, and snippets.

@sonicoder86
Created June 25, 2016 09:05
Show Gist options
  • Save sonicoder86/9d8b73bfc521bb7309838f1c81089470 to your computer and use it in GitHub Desktop.
Save sonicoder86/9d8b73bfc521bb7309838f1c81089470 to your computer and use it in GitHub Desktop.
Authentication in Angular 2 - part 7
// app-injector.ts
import { Injector } from '@angular/core';
let appInjectorRef: Injector;
export const appInjector = (injector?: Injector):Injector => {
if (injector) {
appInjectorRef = injector;
}
return appInjectorRef;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment