简体   繁体   中英

displaying angularjs model data when using jekyll and liquid?

I'm using jekyll with liquid for my website. I want to use angularjs to read json and parse the data on the html page. but both liquid and angularjs use {{}}. So when i try to display angularjs data, it won't because liquid thinks it's a variable created by jekyll. How can i use both jekyll and angularjs? or is there a better approach?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM