javascript - ng-include with a variable for src -


I would like to replace the NG-SRC with a convertible. I currently have this.

  & lt; Div class = 'alignRightCenter' id = 'rightContent' & gt; & Lt; Ng- contains src = "'{{view}}'" & gt; & Lt; / Ng-included & gt; & Lt; / Div & gt;  

And here's the controller:

  ctrl.controller ('contentCtrl', ['$ scope', function ($ scope) {$ scope see = "Partial / set listname = http.html";}]);  

Unfortunately I can not use NG-view because it is already being used to get me on this page. Is it possible to do something like this work?

Try the following:

  & lt; Ng- "see" & gt; & Lt; / Ng-included & gt;  

----------------- or --------------------- -

You can do this way,

view:

  & lt; Div data-ng-included data -ng-src = "getPartial ()" & gt; & Lt; / Div & gt;  

Controller:

  function AppCtrl ($ scope) {$ scope.getPartial = function () {Return 'partial / issues.html'; }}  

Comments