Jezdimir Lončar

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Sep 30, 2016 11:34
Hello folks, quick Angular question. Say we have a root module named app. angular.module('app', ['app.auth']).
We also have module app.auth. In app auth, we have reference to some templates. When using .run on 'app' module to do $templateCache.put , templates requests end up being not found, but when doing that same .run on 'app.auth', they work fine. Shouldn't running $templateCache.put on main module make templates available for dependent modules as well?
 

AngularJS

angular.module("ng-chat", ['stackoverflow'])
Sep 30, 2016 11:25
Hello folks. Say we have a root module named app. angular.module('app', ['app.auth']).
We also have module app.auth. In app auth, we have reference to some templates. When using .run on 'app' module to do $templateCache.put , templates requests end up being not found, but when doing that same .run on 'app.auth', they work fine. Shouldn't running $templateCache.put on main module make templates available for dependent modules as well?
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jul 31, 2011 06:52
ello every1