Skip to content

Instantly share code, notes, and snippets.

@azaharafernandezguizan
Created November 3, 2018 15:42
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 azaharafernandezguizan/3849e1d91ed79505a24687eea73132da to your computer and use it in GitHub Desktop.
Save azaharafernandezguizan/3849e1d91ed79505a24687eea73132da to your computer and use it in GitHub Desktop.
Example of Angular´s component module
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule} from '@angular/forms';
import { MagicaLessonsComponent } from './magical.lessons.component';
import { MagicalLessonsListComponent } from './magical.lessons.list.component';
import { MagicalLessonsResolver } from './magical.lessons.resolver';
@NgModule({
imports: [
CommonModule,
FormsModule
],
declarations: [MagicaLessonsComponent, MagicalLessonsListComponent],
providers:[
MagicalLessonsResolver
]
})
export class MagicalLessonsModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment