{"flag":true,"single":true,"pageTitle":"Can't bind to 'ngModel' since it isn't a known property of 'input'","post":{"id":108,"user_id":"3","slug":"can-t-bind-to-ngmodel-since-it-isn-t-a-known-property-of-input--pwtj","title":"Can't bind to 'ngModel' since it isn't a known property of 'input'","body":"<p>To fix this error, you need to import the <code>FormsModule<\/code> in your app module:<\/p>\r\n<div class=\"bg-black rounded-md mb-4\">&nbsp;<\/div>\r\n<p>Also, import your component in App Module.<\/p>\r\n<p>Make sure you have imported the&nbsp;<code>BrowserModule<\/code> or <code>CommonModule<\/code> in your app module<\/p>\r\n<p>===========<\/p>\r\n<p>&lt;!-- Correct --&gt;<br>&lt;input type=\"text\" name=\"username\" [(ngModel)]=\"username\"&gt;<\/p>\r\n<p>&lt;!-- Incorrect --&gt;<br>&lt;input type=\"text\" name=\"username\" ng-model=\"username\"&gt;<\/p>\r\n<p>&nbsp;<\/p>","category_id":"14","is_private":"0","created_at":"2023-04-07T05:39:38.000000Z","updated_at":"2023-04-07T05:39:38.000000Z","category":{"id":14,"user_id":"3","name":"Angular","slug":"angular-gd2h","parent_id":null,"created_at":"2023-03-28T22:24:44.000000Z","updated_at":"2023-03-28T22:24:44.000000Z"},"user":{"id":3,"name":"Muhammad Farhan","email":"helpinghour@gmail.com","email_verified_at":null,"two_factor_confirmed_at":null,"current_team_id":"3","profile_photo_path":null,"created_at":"2023-03-28T22:23:15.000000Z","updated_at":"2023-03-28T22:24:06.000000Z","profile_photo_url":"https:\/\/ui-avatars.com\/api\/?name=M+F&color=7F9CF5&background=EBF4FF"}},"pageDesc":"To fix this error, you need to import the FormsModule in your app module: &nbsp; Also, import your component in App Module. Make sure you ha - Can't bind to 'ngModel' since it isn't a known property of 'input' (Updated: April 7, 2023) - Read more about Can't bind to 'ngModel' since it isn't a known property of 'input' at my programming site [SITE]","categories":[]}