javascript - Evaluated expression not being parsed after updating to angular 1.2.5 -


this syntax had 1.0.8

<div ng-click="go('/albumdetail/{{album.albumid}}')"> 

and worked perfectly. however, after updating 1.2.5 (which involved using newly seperated routing module, not sure if thats related or not), album.albumid not being parsed , being sent is. hapenning here ?

1.2 versions of angular disallow interpolations inside dom event handlers.

(cf. docs.angularjs.org/guide/migration)

instead of using interpolation, use plain javascript event handler expression form parameter:

go('/albumdetail/' + album.albumid) 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -