I want to initialize an angular variable with local scope BWCount.
When i use ng-init I get the following error
Error: $parse:syntax
But when I use ng-int (It was a typo, but turns out to be a surprising serendipity), it works fine and I can even use that variable in other markups.
What is happening here? Am I using the incorrect syntax for ng-init? And what is this ng-int (I don't have any custom directive called ngInt)
I am using Visual studio 2013 and have have the following markup:
<div ng-int="{{BWCount=(oCurrentDepartment.oMachineAccount|sumByKey:'BWCOUNT')}}">{{BWCount}}</div>
Notice ng-int
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…