shared.module.tns.ts 1.8 KB
Newer Older
1 2 3 4
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { NgrxFormsModule } from "ngrx-forms";

Emily Jensen's avatar
Emily Jensen committed
5
import { ButtonComponent } from "./button/button.component.tns";
6 7
import { TextFieldComponent } from "./text-field/text-field.component";
import { HeadingComponent } from "./heading/heading.component";
8 9
import { SearchComponent } from "./search/search.component";
import { NonFieldMessagesComponent } from "./non-field-messages/non-field-messages.component";
10
import { DirectivesModule } from "../directives";
11
import { CheckboxComponent } from "./checkbox/checkbox.component";
David Burke's avatar
David Burke committed
12
import { AsideLinkComponent } from "./aside-link/aside-link.component";
Emily Jensen's avatar
Emily Jensen committed
13
import { TextLinkComponent } from "./text-link/text-link.component";
14
import { NativeScriptRouterModule } from "nativescript-angular/router";
Emily Jensen's avatar
Emily Jensen committed
15 16 17 18
import { NsCheckboxComponent } from "./ns-checkbox/ns-checkbox.component";
import { ServerSelectComponent } from "./server-select/server-select.component";
import { AccountFrameComponent } from "./account-frame/account-frame.component";
import { BulletListComponent } from "./bullet-list/bullet-list.component.tns";
19
import { NonFieldErrorsComponent } from "./non-field-errors/non-field-errors.component";
20

21 22 23 24
export const COMPONENTS = [
  ButtonComponent,
  TextFieldComponent,
  HeadingComponent,
David Burke's avatar
David Burke committed
25
  CheckboxComponent,
26 27
  AsideLinkComponent,
  SearchComponent,
Emily Jensen's avatar
Emily Jensen committed
28 29 30 31 32
  NonFieldMessagesComponent,
  NsCheckboxComponent,
  TextLinkComponent,
  ServerSelectComponent,
  AccountFrameComponent,
33 34
  BulletListComponent,
  NonFieldErrorsComponent
35
];
36 37

@NgModule({
38 39 40 41 42 43
  imports: [
    NativeScriptCommonModule,
    NgrxFormsModule,
    DirectivesModule,
    NativeScriptRouterModule
  ],
44 45 46 47 48
  declarations: COMPONENTS,
  exports: COMPONENTS,
  schemas: [NO_ERRORS_SCHEMA]
})
export class SharedModule {}