Skip to content
Snippets Groups Projects
Select Git revision
  • 394d7e5dc04e046c6077f8fca0574d100057df7e
  • master default protected
  • artefact-eval
  • modelica
  • visibilityscopes
  • scopetree
  • similarCfg
  • wip-reusable
8 results

app.module.ts

Blame
  • app.module.ts 1.45 KiB
    import { NgModule }      from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { FormsModule } from '@angular/forms';
    import { HttpModule } from '@angular/http';
    import { RouterModule } from '@angular/router';
    
    import { AppComponent }  from './app.component';
    import { TypeDetailsComponent }  from './type-details.component';
    import { ParametersComponent }  from './parameters.component';
    import { TypeReferenceComponent } from './type-ref.component';
    import { NameFilterPipe } from './name-filter.pipe';
    import { StringFilterPipe } from './string-filter.pipe';
    import { SourceViewComponent } from './source-view/source-view.component';
    import { EditorDirective } from './editor.directive';
    import { DeclaredAtComponent } from './declared-at/declared-at.component';
    import { AstDeclComponent } from './ast-decl/ast-decl.component';
    
    @NgModule({
      imports:      [
        BrowserModule,
        FormsModule,
        HttpModule,
        RouterModule.forRoot([
          {
            path: 'type/:id',
            component: TypeDetailsComponent
          },
          {
            path: 'source/:filename/:line',
            component: SourceViewComponent
          }
        ]),
      ],
      declarations: [
        AppComponent,
        TypeDetailsComponent,
        ParametersComponent,
        TypeReferenceComponent,
        NameFilterPipe,
        StringFilterPipe,
        SourceViewComponent,
        EditorDirective,
        DeclaredAtComponent,
        AstDeclComponent,
      ],
      bootstrap:    [ AppComponent ]
    })
    export class AppModule { }