angular.js - anguarjs ui的路由問題
阿神
阿神 2017-05-15 16:50:38
0
1
604

剛接觸這個做項目,當碰到跳轉時,state後面的第一個參數代表什麼意思呢?和url有什麼對應關係嗎?請教各位大神

 .state('app.single', {
    url: "/history/:sid/:bmid",
    views: {
      'menuContent': {
        templateUrl: "templates/historydata.html",
        controller: 'histFun'
      }
    }
阿神
阿神

闭关修行中......

全部回覆(1)
我想大声告诉你

https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views#example---name-matching

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!