【文件属性】:
文件名称:angularRouting:简单的 Angular JS 路由示例
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-14 20:46:28
JavaScript
角度路由
关于
这只是一个简单的 angular JS 路由示例,演示了如何使用 angular 路由到站点上的不同页面。 为简单起见,botstrap 用于样式。
// create the module and name it scotchApp
var routingExample = angular . module ( 'routingExample' , [ 'ngRoute' ] ) ;
// configure our routes
routingExample . config ( function ( $routeProvider ) {
$routeProvider
// route for the home page
. when ( '/' , {
templateUrl : 'pages/home.html' ,
con
【文件预览】:
angularRouting-master
----script.js(774B)
----README.md(1KB)
----index.html(1KB)
----pages()
--------contact.html(87B)
--------about.html(85B)
--------home.html(84B)