-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Default value for ngModel and FormGroup #49
Comments
Without FormGroup all OK |
I am not an expert on this matter. I haven't used formGroup. https://angular.io/docs/ts/latest/api/forms/index/FormGroupName-directive.html Any help would be appreciated. |
I think the page construction is incorrect. FormsModule and ReactiveModule are two different approaches to forms. Though they can co-exist that doesn't mean it is the right approach.
Here is a snippet from Angular University about the two:
http://blog.angular-university.io/introduction-to-angular-2-forms-template-driven-vs-model-driven/ I think if you want a page with a lot of state interactivity work with ReactiveModule else go FormsModule This could just be a limitation of the current ng2-auto-complete until updated, Re: #62 (comment) for FormGroups |
Nico, thanks You just have me bunch of things to read. |
No problem. I read through the source, the provided plnkr and realized that the page was indeed wrong. @gectus Please see the updated plnkr: http://plnkr.co/edit/CxeAHUgeNfH25Cp7RM43?p=preview, Is this what you wanted to do? @allenhwkim PR may not be necessary, unless you want to transform the object with attributes like you have with When using Regardless keep |
Hi all @ndcunningham |
ReadMe.md is updated with this example, and closing it |
Hi!
I have a problem. Now if I initialize the model object with FormGroup, I'm getting "[object] [object]"
Example: http://plnkr.co/edit/qGT7NoWKMdpl1Ue0RXxF?p=preview
The text was updated successfully, but these errors were encountered: