APIs & Integrations

Not applicable

Angular bind parameter is not working in hubspot

I have using Angular.js in my website, I’m trying to show the data from scope object. When I bind data using braces{{}} it doesn’t work. Also I tried to some calculation in binding data {{rate * price}}. It shows error in template and not able to save the file to publish.

0 Upvotes
1 Reply 1
zwolfson
HubSpot Employee
HubSpot Employee

Angular bind parameter is not working in hubspot

HI @jackjadish,

The double curly braces {{}} are used by the HubSpot content management system as part of the templating language which is why that’s throwing an error. I’ve run into this before and I was using Angular v1 so I was able to change the interpolation characters via $interpolateProvide as documented here: https://docs.angularjs.org/api/ng/provider/$interpolateProvider

-Zack

0 Upvotes