我们可以使用Angular Templateurl来指向MVC .cshtml视图

时间:2017-11-21 11:09:30

标签: angular asp.net-mvc-4 iis razor localhost

我们可以使用Templateurl指向.cshtml视图。

getContext().getContentResolver().notifyChange(uri, null);

上面的代码正在iis express中加载视图,但是当我将项目属性更改为本地iis时,我收到以下错误。

@Component({ selector: 'sq-button', templateUrl: '../../Views/Component/Button', styleUrls: ['button.component.css'] })

将项目更改为本地iis后,是否必须进行任何更改?

0 个答案:

没有答案