我有一个AngularJS的指令,并使用以下方法在Jade Template中调用它:
输入(auto-complete,ui-items =’merchants.name’,ng-model =’selected’)
< input class =“ng-pristine ng-valid”ng-model =“selected”ui-items =“merchants.name”auto-complete =“auto-complete”>
我怎样才能消除=“自动完成”?
解决方法
引自
How can I add an attribute without a value?
I did find that null removes the attribute and an empty string
provides the desired result. So
script(src=”/javascripts/angular-0.9.19.js”,ng:autobind=””) works. I
didn’t see this in the documentation,but it makes sense.
input(auto-complete="",ui-items='merchants.name',ng-model='selected')