SHARE

Yo gang, in this Angular 2 tutorial we’ll take a first look at 2-way data binding using ngModel. ngModel allows us to bind data to a model back-and forth between the view/template and the component class.

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/angular-2-playlist
+ Atom editor – https://atom.io/
+ Download Node.js – https://nodejs.org/en/

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== PSD to WordPress Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W

============ Node.js for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

10 COMMENTS

  1. add this line " import { FormsModule } from '@angular/forms'; " to app.module.ts
    and also add FormsModule in imports .

    imports: [
    BrowserModule,
    FormsModule
    ]

  2. ngModel needs to import FormsModule now. In your app.module, add this following line at the top.

    import { FormsModule } from '@angular/forms';

    Ahhhh I spent my whole afternoon just on those 2 stupid errors!😭

LEAVE A REPLY

Please enter your comment!
Please enter your name here