Created
May 4, 2017 22:45
-
-
Save tomastrajan/8c07b5cef873589ebe9484ac7a645b4d to your computer and use it in GitHub Desktop.
Angular Model Pattern - register model provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { MODEL_PROVIDER } from './model.service'; | |
@NgModule({ | |
/* ... */ | |
providers: [MODEL_PROVIDER] | |
}) | |
export class CoreModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment