angularjs - Can I nest a $scope variable inside an ng-include? -


i wanted nest variable inside ng-include. variable in case cdn path or file path. works:

<img src="{{cdn}}uploads/avatar_{{uid}}.png" ng-src="{{cdn}}uploads/avatar_{{uid}}.png" /> 

this not

<div ng-controller="expr">   <div ng-include="'{{cdn}}logo.tpl'"></div> </div> 

this in template views , routes. don't want use directives.

ng-include evaluate whatever pass there no need use {{}}. work

<div ng-include="cdn + 'logo.tpl'"></div> 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -