intro-to-ui-router:ui路由器简介

时间:2021-05-21 09:05:05
【文件属性】:
文件名称:intro-to-ui-router:ui路由器简介
文件大小:231KB
文件格式:ZIP
更新时间:2021-05-21 09:05:05
JavaScript ui-router教程 如果您像我一样,那么您以前在angular.js中使用过 。 您的应用程序可能看起来像下面的模板: var app = angular.module('intro-ui-router', [ 'ui.router' ]); app.config(function($stateProvider, $urlRouterProvider){ $urlRouterProvider.otherwise("/"); $stateProvider .state('home', { url: "/", templateUrl: "templates/main.html", controller: 'MainCtrl' }); }); templates/main.html在index.html <div ui-
【文件预览】:
intro-to-ui-router-master
----index.html(1KB)
----server.js(1KB)
----js()
--------controllers()
--------lib()
--------app.js(1018B)
----README.md(6KB)
----css()
--------main.css(0B)
----templates()
--------post.html(116B)
--------main.html(317B)
----.gitignore(13B)
----package.json(586B)

网友评论