Search code examples
nativescriptangular2-nativescriptnativescript-angular

Angular BrowserModule for NativeScript


As we use BrowserModule for using ngModel in web area, and is imported by default while creating new ng app, what is the equivalent for this in NativeScript?


Solution

  • If you want to use ngModel to nativescript app, you could use NativeScriptFormsModule and import it to your app.module.ts as following:

    import { NativeScriptFormsModule } from "nativescript-angular/forms"
    

    you can check this link here