【问题标题】:Spring Boot + AngularJS routing not workingSpring Boot + AngularJS 路由不起作用
【发布时间】:2017-11-20 17:42:25
【问题描述】:

Spring Boot + AngularJS 路由不起作用

【问题讨论】:

  • 能否请您使用模板template:'<b>Hello</b>' 进行测试,请告诉我输出结果

标签: angularjs spring spring-mvc spring-boot routing


【解决方案1】:

请将template 更改为templateUrltemplate 用于在 when 中编写 html 代码,如下所示:

template:'<b>Hello</b>'

templateUrl 用于提供 html 文件作为字符串 URL。

templateUrl:'filmList.html'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-02
    • 2018-03-18
    • 2016-09-24
    相关资源
    最近更新 更多