2016-04-11 73 views

回答

0

您需要使用SharedState服務:

app.controller('myController', function($scope, SharedState){ 
    SharedState.initialize($scope, "activeScreen", 2); 
}); 

或者:

app.controller('myController', function($scope, SharedState){ 
    SharedState.set("activeScreen", 2); 
}); 
相關問題