ng-include with a variable for src

前端 未结 2 1429
遥遥无期
遥遥无期 2021-01-01 10:17

I would like to change the ng-includes src with a variable. Currently this is what I have.

 
&l
2条回答
  •  暖寄归人
    2021-01-01 10:36

    Try as follows:

     
    

    -----------------OR----------------------

    You can do this way,

    View:

    Controller:

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

提交回复
热议问题