Pregunta

I have a Shopify store, which uses the liquid templating engine. I'm trying to setup a blog on within this site / theme.

I would like to design the blog with angular. The blog has it's own directory within the site, and it's not on a subdomain of it's own.

I'm wondering if this is something that can be done with angular, and why it's the example that's up isn't binding? Is it a base url thing?

¿Fue útil?

Solución

If your wondering why your example on that page isnt working, bring up your Javascript console (Command + J) and you'll see the error. You need to initialize the myApp module.

Something like

angular.module('myApp',[]);

The error can be found here: http://tinyurl.com/mbvhc5a

And to answer your question, yes you can use angular for your blog, but the question is more likely to be is it the right choice? For most blogs, the answer would be no, unless your planning a high amount of user interaction with the UI.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top