Undefined attribute name (ng-model) at Eclipse

后端 未结 4 1064
你的背包
你的背包 2021-02-19 04:11

My Eclipse is accusing an error in tag \"ng-model\"

My eclipse is warning the ng-model att when I save the file:





        
4条回答
  •  眼角桃花
    2021-02-19 04:38

    I, personally, do not like the solution when you disable all warnings for attributes, since you would like to see those for real problems (non-angular attributes). So, summarizing both above answers, I can propose add ng-* pattern to exclude list for HTML validation: Preferences->Web->Html files->Validation: mark 'Ignore specified attribute names to be ignored', type: ng-*. This was working well for me.

提交回复
热议问题