ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

added $templateCache config filter #104

Closed ascheucher closed 10 years ago

ascheucher commented 10 years ago

Hi Eric,

to secure an Angular app, with Passport I wanted to exclude some of the templates from $templateCache.

I have made adopted the compile, to support it. Maybe it's interesting for somebody else as well...

regards, Andreas

ericclemmons commented 10 years ago

@ascheucher You should be able to exclude templates via glob patterns:

src: ['/**/*.js', '!**app/secured**']

http://stackoverflow.com/a/12633119

ascheucher commented 10 years ago

ok. would have been much easier ;) searched for it, but did not find it... thanks for the info!