Saturday, 15 September 2012

php - Angularjs parse error after upgrade to v1.3.6 -


I have upgraded version v1.3.6 to my variant v1.2.15 and this is one of the codes on my ecommerce Piece broken site (Wordpress, Woocommerce, Cart page)

I'm getting a parse error on this:

  {{initarray. & Lt ;? Php echo $ cart_item_key; ? & Gt ;. Mount}}  

Before this it will display the amount of a certain item in the car, which is incremental. Although updating angularjs in v1.3.6, this code can not be parsed now.

The results page looks like this:

  {{initarray.77596958a3b31761962c8b2393cfcfb2.amount}}  

The error I 'syntax error : token '0.775 9 6 9 58 "column of expression is an unexpected token 10 [initarray.77596958a3b31761962c8b2393cfcfb2.amount] [775 9 is triggered by 6958a3b31761962c8b2393cfcfb2.amount].

I have not written code, so I'm unfamiliar with the array syntax to use this programmer, this new version should not be great because NG does not like it.

Any guidance is appreciated, ty.

Change it to:

  {{initray [' & Lt ;? Php alo $ cart_item_key; ? & Gt; ']. Amount}} or  

Edit: the single quotes around the PP echo has been added and it works.


No comments:

Post a Comment