Displaying angularjs model data when using jekyll and fluid?

I am using jekyll with fluid for my site. I want to use angularjs to read json and parse data in html page. but both liquid and angular use {{}}. So when I try to display angular data it won't be because the fluid thinks it is a jekyll-generated variable. How can I use both jekyll and angularjs? or is there a better approach?

+3


source to share


1 answer


This question is old now, but I found a better solution than the one suggested in the linked SO question. The best way to use AngularJS with Jekyll is to use tags raw

like this:



{% raw %}
  \\ All the Angular goodness goes here...
{% endraw %}

      

+3


source







All Articles