angular.js - anguarjs ui的路由问题

浏览:45日期:2023-02-08

问题描述

刚接触这个做项目,当碰到跳转时,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

相关文章: