So, I am wondering how I can declare multiple values โโinside one ng-init without creating some weird hash, then I need to always have access to the specific.
so basically i would like
<div ng-init="a = 1, b = 2">{{a}}</div>
and I say that I would like not to do
<div ng-init="unecessary_bs = {a: 1, b: 2}">{{unecessary_bs.a}}</div>
However reasonable:
<div ng-init="a = 1, b = 2">{{a}}</div>
doesn't seem to work.
Expected thanks
javascript angularjs
Cosmin May 28 '14 at 19:03 2014-05-28 19:03
source share