Skip to content

Instantly share code, notes, and snippets.

@garunski
Last active September 12, 2018 21:57
Show Gist options
  • Save garunski/44eb0f9ec57c75901b436987d365325f to your computer and use it in GitHub Desktop.
Save garunski/44eb0f9ec57c75901b436987d365325f to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { JobComponent } from './job.component';
import { FormlyModule } from '@ngx-formly/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
@NgModule({
imports: [
ReactiveFormsModule,
FormlyModule,
CommonModule,
RouterModule.forChild([
{ path: 'new', component: JobComponent, data: { title: 'Job' } },
]),
],
declarations: [JobComponent]
})
export class JobModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment