AngularJS ng-include does not include view unless passed in $scope

后端 未结 2 1661
不知归路
不知归路 2020-12-04 09:45

Is it wrong to assume that ngInclude can take a raw path? I keep trying to set my ngInclude as follows:

2条回答
  •  隐瞒了意图╮
    2020-12-04 10:26

    ng-include accepts an expression. If you want to specify the explicit URL directly in there, you have to give a string.

提交回复
热议问题