标签:template config log UI class javascrip app url conf
var myApp = angular.module("myApp", [‘ui.router‘]); myApp.config([‘$stateProvider‘, ‘$urlRouterProvider‘,‘$locationProvider‘, function ($stateProvider, $urlRouterProvider, $locationProvider) { $urlRouterProvider.when("", "/one"); $stateProvider .state("one", { url:"/one", views: { "":{templateUrl: ‘view/one.html‘} } }) .state("two", { url:"/two", views: { "":{templateUrl: ‘view/two.html‘} } }) .state("three", { url:"/three", templateUrl: "view/three.html" }); $locationProvider.html5Mode(true); }]);
标签:template config log UI class javascrip app url conf
原文地址:http://www.cnblogs.com/huangtonghui/p/7221451.html