Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. (function (global) {
  2. System.config({
  3. paths: {
  4. // paths serve as alias
  5. 'npm:': 'node_modules/'
  6. },
  7. // map tells the System loader where to look for things
  8. map: {
  9. // our app is within the app folder
  10. app: 'app',
  11.  
  12. // angular bundles
  13. '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
  14. '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
  15. '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
  16. '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
  17. '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
  18. '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
  19. '@angular/http/testing': 'npm:@angular/http/bundles/http-testing.umd.js',
  20. '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
  21. '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
  22. // other libraries
  23. 'rxjs': 'npm:rxjs',
  24. 'ng2-completer': 'node_modules/ng2-completer/ng2-completer.umd.js'
  25. },
  26. // packages tells the System loader how to load when no filename and/or no extension
  27. packages: {
  28. "jwt-decode": {
  29. defaultExtension: "js"
  30. },
  31. app: {
  32. main: './main.js',
  33. defaultExtension: 'js'
  34. },
  35. rxjs: {
  36. defaultExtension: 'js'
  37. }
  38. }
  39. });
  40. })(this);
  41.  
  42. import { NgModule } from '@angular/core';
  43. import { BrowserModule } from '@angular/platform-browser';
  44. import { FormsModule } from '@angular/forms';
  45. import { HttpModule } from '@angular/http';
  46.  
  47. import { fakeBackendProvider } from './_helpers/index';
  48. import { MockBackend, MockConnection } from '@angular/http/testing';
  49. import { BaseRequestOptions } from '@angular/http';
  50.  
  51. import { AppComponent } from './app.component';
  52. import { routing } from './app.routing';
  53. import { AppConfig } from './app.config';
  54.  
  55. import { AlertComponent } from './_directives/index';
  56. import { AuthGuard } from './_guards/index';
  57. import { AlertService, AuthenticationService, UserService, RoleService, MunicipalityService, UnitService, CommService } from './_services/index';
  58. import { HomeComponent } from './home/index';
  59. import { LoginComponent } from './login/index';
  60. import { RegisterComponent } from './register/index';
  61. import { MunicipalityComponent } from './municipality/index';
  62. import { UnitComponent } from './unit/index';
  63. import { UserComponent } from './user/index';
  64. import { ManagementComponent } from './management/index';
  65.  
  66. import { Ng2CompleterModule } from "ng2-completer";
  67.  
  68. @NgModule({
  69. imports: [
  70. BrowserModule,
  71. FormsModule,
  72. Ng2CompleterModule,
  73. HttpModule,
  74. routing
  75. ],
  76. declarations: [
  77. AppComponent,
  78. AlertComponent,
  79. HomeComponent,
  80. LoginComponent,
  81. RegisterComponent,
  82. MunicipalityComponent,
  83. UserComponent,
  84. UnitComponent,
  85. ManagementComponent
  86. ],
  87. providers: [
  88. AppConfig,
  89. AuthGuard,
  90. AlertService,
  91. AuthenticationService,
  92. UserService,
  93. MunicipalityService,
  94. UnitService,
  95. RoleService,
  96. CommService
  97. // providers used to create fake backend
  98. //fakeBackendProvider,
  99. //MockBackend,
  100. //BaseRequestOptions
  101. ],
  102. bootstrap: [AppComponent]
  103. })
  104.  
  105. export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement