grunt css for test

This commit is contained in:
lh_wang
2015-12-04 10:38:42 +08:00
parent d5a27e83cd
commit 2a489432d6
9 changed files with 55 additions and 46 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ app.constant('ServiceConfig', {
movie_search_id: 'https://api.douban.com/v2/movie/subject/'
});
app.config(['$stateProvider', '$urlRouterProvider',function($stateProvider, $urlRouterProvider){
app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){
/*URL路由*/
$urlRouterProvider.otherwise("/");
+2 -3
View File
@@ -8,10 +8,9 @@ app.factory('movieList', ['$rootScope', '$http', 'ServiceConfig', function($root
window.movieSearch = function(data){
$rootScope.isNoLoaded = false;
if(data.subjects && data.subjects.length){
$rootScope.movieList = data.subjects;
if(data.subjects && data.subjects.length) {
$rootScope.movieList = data.subjects;
}
console.log(data.subjects);
};
}
};