angular路由
来源:互联网 发布:如何应对网络谣言 编辑:程序博客网 时间:2024/05/01 15:42
1.app.js
"use strict";(function (angular) {var app = angular.module('moviedog',['ngRoute','moviedog.in_theaters','moviedog.coming_soon','moviedog.top250']);app.config(['$routeProvider',function ($routeProvider) {$routeProvider.otherwise({redirectTo:'/in_theaters'});}]);app.controller('appViewController',['$scope',function ($scope) {$scope.name = '北京电影频道';}]);})(angular);2.in_theaters
'use strict';(function (angular) {var module = angular.module('moviedog.in_theaters',['ngRoute']);module.config(['$routeProvider',function ($routeProvider) {$routeProvider.when('/in_theaters',{templateUrl:'in_theaters/view.html',controller:'In_theatersController'});}]);module.controller('In_theatersController',['$scope',function ($scope) {}]);})(angular)
3.index
<ul class="nav nav-sidebar"> <li auto-focus><a href="#/in_theaters/1">正在热映</a></li> <li auto-focus><a href="#/coming_soon/1">即将上映</a></li> <li auto-focus><a href="#/top250/1">TOP</a></li> </ul>
阅读全文
0 0
- angular 路由
- angular路由
- Angular路由
- angular 路由
- Angular路由
- angular路由
- angular路由
- angular路由
- Angular路由
- angular路由
- angular 路由
- Angular路由
- Angular 路由
- Angular路由
- angular 路由
- angular路由
- angular之路由,模板
- Angular路由2
- unity中获取当前进程
- AndroidScrollView滑动到顶在向下话会出现颜色块
- 关于前端微信分享jssdk config:invalid signature 签名错误
- easyUI入门--3
- 一对一直播技术服务【推广】
- angular路由
- python decorater working priciple
- RN 环境搭建
- 欢迎使用CSDN-markdown编辑器
- 史上最简单的 MySQL 教程(二十六)「连接查询(上)」
- js中constructor和prototype的正确理解
- easyui多行复杂表头数据显示
- HDU6156 Palindrome Function(回文数)
- 指针常量 常量指针