Doubly nested views : UI-Router or UI-Bootstrap tabs / accordion?

前端 未结 3 1823
感情败类
感情败类 2020-12-08 03:14

I am a total Angular (and JS) nebwie (with plenty of other s/w development experience, however).

I want to develop something like this:

3条回答
  •  死守一世寂寞
    2020-12-08 04:01

    I personally don't get the point of wanting to use bootstrap tabs with angular's ui-router. It is counter-intuitive. Just don't use bootstrap's tabs and set up the "sub-tabs" in the angular config. This will also make your code more readable. Only add ui-bootstrap if you NEED the extra features. An example config is below

      $stateProvider.state('A', {
      url: "/A",
       controller: "testController",
      templateUrl:'pages/A.html'
    })    
     .state('A.B', {
      url: "/A/B",
       controller: "testController2",
      templateUrl:'pages/A.B.html'
    })    
    

提交回复
热议问题