angualr1中使用$stateProvider路由跳转,从Dom元素可以看出已经加载了views里的component,但是component的templateUrl对应的html没有加载出来。
为了确定是不是templateUrl对应的html没有作用,将templateUrl注释,改用template显示。发现内容也没有显示出来,总结,无论是用templateUrl还是template都没有内容显示。
上面的图片是对应的代码片段。
请各位大神指教!!!
angualr1中使用$stateProvider路由跳转,从Dom元素可以看出已经加载了views里的component,但是component的templateUrl对应的html没有加载出来。
为了确定是不是templateUrl对应的html没有作用,将templateUrl注释,改用template显示。发现内容也没有显示出来,总结,无论是用templateUrl还是template都没有内容显示。
上面的图片是对应的代码片段。
请各位大神指教!!!