Javascript gulp build抛开引号,使用angular在HTML中添加活动类

Javascript gulp build抛开引号,使用angular在HTML中添加活动类,javascript,angularjs,html,build,gulp,Javascript,Angularjs,Html,Build,Gulp,使用gulp角式耶曼发生器 我写这行代码是为了设置一个锚来接收一个活动类 <a ui-sref='landing.recipe' ng-click="land.select('one')" ng-class="{active: land.selected === 'one'}">Recipe</a> 感谢您对我如何解决此问题的帮助。将输入从字符串更改为实数,以消除引号中的引号,现在效果非常好 预构建 <a ui-sref='la

使用gulp角式耶曼发生器

我写这行代码是为了设置一个锚来接收一个活动类

 <a ui-sref='landing.recipe' ng-click="land.select('one')"           
   ng-class="{active: land.selected === 'one'}">Recipe</a>


感谢您对我如何解决此问题的帮助。

将输入从字符串更改为实数,以消除引号中的引号,现在效果非常好

预构建

 <a ui-sref='landing.recipe' ng-click='land.select(1)'               
 ng-class='{active: land.selected === 1}'>Recipe</a>

在构建后,一切都可以正常工作

 <a ui-sref='landing.recipe' ng-click='land.select(1)'               
 ng-class='{active: land.selected === 1}'>Recipe</a>
<a ui-sref="landing.recipe" ng-click="land.select(1)" 
ng-class="{active: land.selected === 1}" href="#/landing/recipe" class="active">Recipe</a>