Freader icon indicating copy to clipboard operation
Freader copied to clipboard

move templates into partials directory

Open idflood opened this issue 12 years ago • 1 comments

Hi,

Your project looks promising : ) I always do backbonejs projects but wanted to play with angularjs. With backbone I like the idea to 'lazy load' template files with requirejs so I wanted to see if something like this was possible with angular. Eventually it has builtin support for this so this was really easy.

idflood avatar Jul 02 '13 18:07 idflood

Hi, I started to do the application that way (with the two views in a specific folder). But this organization implies one XHR request for each page. It more optimized to put them into a script tag and to retrieve the text with a call to the DOM at startup. Some projects like Grunt allow to compile every template into the index.html. I'm looking into it right now to adapt Freader to this organisation ;-)

geekuillaume avatar Jul 02 '13 19:07 geekuillaume