Controller 'ngModel', required by directive '…', can't be found

后端 未结 4 1014
甜味超标
甜味超标 2020-12-10 00:38

What\'s going on here?

Here is my directive:

app.directive(\'submitRequired\', function (objSvc) {
    return {
        require: \'ngModel\',
                


        
4条回答
  •  感动是毒
    2020-12-10 00:56

    I faced the same error, in my case I miss-spelled ng-model directive something like "ng-moel"

    Wrong one: ng-moel="user.name" Right one: ng-model="user.name"

提交回复
热议问题