0
$rootScope
の値を下の行で検索するにはどうすればよいですか?設定stateproviderでionic rootScopeを取得するには?
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
// Here is where I need to get the value of $rootScope.
}
'config'(c onconfiguration) '$ rootScope'(スコープ)のアプリケーションが作成されていないので、' $ rootScope'を取得できません。 '$ rootScope'を注入&使用できる' .run'ブロックを使用することができます。 –
あなたはその例を挙げて..?ありがとう –
'.run(function($ rootScope){ /*ここで$ rootScopeを使用*/ })' – taguenizy