Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller 'ngModel', required by directive 'ngModel', can't be found! when using md-dialog #237

Open
Nagendra080389 opened this issue Apr 26, 2020 · 3 comments

Comments

@Nagendra080389
Copy link

Nagendra080389 commented Apr 26, 2020

Here is a CodePen of the issue I am facing.
When ever I click 'Open' button I get a error in chrome console log.
I am not sure, why is this happening though.

@Gillardo
Copy link
Owner

Gillardo commented May 1, 2020

Dunno what you are doing here but i get an error when i press the first Open button that appears on the page.

@joelmuskwe
Copy link

Getting same error i copied the logic for ctrl.picker2 both the javascript and html into my angularjs application and i am using version 1.8.2 and getting the same error Controller 'ngModel', required by directive 'ngModel', can't be found!

@victormcfreire
Copy link

Getting the same error here. The datepicker and ngModel are on the same input element but the error still occurs. Everything still works fine, tho. According to some research I made, this is due to the fact that the directive 'datetime-picker' loads the template in templateCache, so it is possible that it loads before getting the actual ngModel. I've tried many ways to solve this, but I couldn't.
I'm using angular 7 and angular-ui-bootstrap 2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants