Skip to content

Commit e003241

Browse files
sis0k0manoldonev
authored andcommitted
refactor: replace NativeScriptModule with NativeScriptCommonModule (#19)
NativeScriptModule should be imported only in the root NgModule. For all other feature modules, NativeScriptCommonModule should be used instead. Check out NativeScript/nativescript-angular#1196.
1 parent fb7bacf commit e003241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/template-health-survey-ng/survey/survey.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
22
import { NativeScriptFormsModule } from "nativescript-angular/forms";
3-
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
3+
import { NativeScriptCommonModule } from "nativescript-angular/common";
44

55
import { SharedModule } from "../shared/shared.module";
66
import { SurveyBooleanQuestionComponent } from "./survey-boolean-question.component";
@@ -12,7 +12,7 @@ import { SurveyTextQuestionComponent } from "./survey-text-question.component";
1212
@NgModule({
1313
imports: [
1414
NativeScriptFormsModule,
15-
NativeScriptModule,
15+
NativeScriptCommonModule,
1616
SharedModule,
1717
SurveyRoutingModule
1818
],

0 commit comments

Comments
 (0)