Refresh specific page with Angular, Express and Jade (using html5mode)

后端 未结 2 898
忘掉有多难
忘掉有多难 2021-01-12 22:27

I\'m trying to refresh a page and execute client route to open a template inside ng-view

Index.jade

extends layouts/default

block c         


        
2条回答
  •  有刺的猬
    2021-01-12 22:57

    @Scymex help me to find this issue:

    For anybody who might be using Jade, here's a quick gotcha: div(ui-view) compiles to

    . What you need is div(ui-view="").

    So, you can have ui-view inside ng-include, but need do this trick

    Font: https://github.com/angular-ui/ui-router/issues/679

提交回复
热议问题