Pasvaz / bindonce

Zero watches binding for AngularJs
2.73k stars 278 forks source link

Using bindonce with Ui Router #127

Open cougardeploy opened 8 years ago

cougardeploy commented 8 years ago

Can bindonce help me with a UI Router element....trying to remove the watcher off this

how can i get rid of the watcher from this

ui-sref="investments.funds({ Uid: investment.Uid })"

Thanks

seeekr commented 8 years ago

Put the href/url generation into controller code, set the url on the $scope, then use {{::myHrefVar}} one-time binding (or however you do that with bindonce).

w-sz commented 7 years ago

ui-sref="investments.funds({ Uid: '{{::investment.Uid}}' })"