Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (global) {
- System.config({
- paths: {
- // paths serve as alias
- 'npm:': 'node_modules/'
- },
- // map tells the System loader where to look for things
- map: {
- // our app is within the app folder
- app: 'app',
- // angular bundles
- '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
- '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
- '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
- '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
- '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
- '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
- '@angular/http/testing': 'npm:@angular/http/bundles/http-testing.umd.js',
- '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
- '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
- // other libraries
- 'rxjs': 'npm:rxjs',
- 'ng2-completer': 'node_modules/ng2-completer/ng2-completer.umd.js'
- },
- // packages tells the System loader how to load when no filename and/or no extension
- packages: {
- "jwt-decode": {
- defaultExtension: "js"
- },
- app: {
- main: './main.js',
- defaultExtension: 'js'
- },
- rxjs: {
- defaultExtension: 'js'
- }
- }
- });
- })(this);
- import { NgModule } from '@angular/core';
- import { BrowserModule } from '@angular/platform-browser';
- import { FormsModule } from '@angular/forms';
- import { HttpModule } from '@angular/http';
- import { fakeBackendProvider } from './_helpers/index';
- import { MockBackend, MockConnection } from '@angular/http/testing';
- import { BaseRequestOptions } from '@angular/http';
- import { AppComponent } from './app.component';
- import { routing } from './app.routing';
- import { AppConfig } from './app.config';
- import { AlertComponent } from './_directives/index';
- import { AuthGuard } from './_guards/index';
- import { AlertService, AuthenticationService, UserService, RoleService, MunicipalityService, UnitService, CommService } from './_services/index';
- import { HomeComponent } from './home/index';
- import { LoginComponent } from './login/index';
- import { RegisterComponent } from './register/index';
- import { MunicipalityComponent } from './municipality/index';
- import { UnitComponent } from './unit/index';
- import { UserComponent } from './user/index';
- import { ManagementComponent } from './management/index';
- import { Ng2CompleterModule } from "ng2-completer";
- @NgModule({
- imports: [
- BrowserModule,
- FormsModule,
- Ng2CompleterModule,
- HttpModule,
- routing
- ],
- declarations: [
- AppComponent,
- AlertComponent,
- HomeComponent,
- LoginComponent,
- RegisterComponent,
- MunicipalityComponent,
- UserComponent,
- UnitComponent,
- ManagementComponent
- ],
- providers: [
- AppConfig,
- AuthGuard,
- AlertService,
- AuthenticationService,
- UserService,
- MunicipalityService,
- UnitService,
- RoleService,
- CommService
- // providers used to create fake backend
- //fakeBackendProvider,
- //MockBackend,
- //BaseRequestOptions
- ],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement