Skip to content

Instantly share code, notes, and snippets.

@tomastrajan
Created May 4, 2017 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomastrajan/8c07b5cef873589ebe9484ac7a645b4d to your computer and use it in GitHub Desktop.
Save tomastrajan/8c07b5cef873589ebe9484ac7a645b4d to your computer and use it in GitHub Desktop.
Angular Model Pattern - register model provider
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