angular.module('dodgie', []).config(function($routeProvider){
$routeProvider.when('/home', {template:'/partials/home.html', controller:dodgieCtrl }).
otherwise({redirectTo:'/home'});
});
function dodgieCtrl($scope, $location){
$scope.doSearch = function(){
if ( !$scope.newTodo.length ) {
return;
}
};
};
的内容:
<div id="content" ng-view></div>
而是:
<span class="ng-scope">/partials/home.html</span>
为什么我的部分没有被渲染?