Skip to content

Instantly share code, notes, and snippets.

@dextermb
Last active April 19, 2018 18:51
Show Gist options
  • Save dextermb/e0486dc589495360fed3a6504aaae353 to your computer and use it in GitHub Desktop.
Save dextermb/e0486dc589495360fed3a6504aaae353 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { ComponentsModule } from './components/components.module';
import { RoutesModule } from './components/routes.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [ComponentsModule, RoutesModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {
}
import { RouterModule } from '@angular/router';
export const RoutesModule = RouterModule.forRoot([], { onSameUrlNavigation: 'reload' });
import { NgModule } from '@angular/core';
const MODULES = [];
const PROVIDERS = [];
const COMPONENTS = [];
@NgModule({
imports: MODULES,
providers: PROVIDERS,
declarations: COMPONENTS,
exports: [].concat(MODULES, COMPONENTS)
})
export class TemplateModule {
}
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';
const MODULES = [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
RouterModule,
CommonModule
];
const PROVIDERS = [];
const COMPONENTS = [];
@NgModule({
imports: MODULES,
providers: PROVIDERS,
declarations: COMPONENTS,
exports: [].concat(MODULES, COMPONENTS)
})
export class UiModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment