2016-03-31 12 views
0

コマンドプロンプトで「ionic serve」と入力すると、Registration.htmlページを開始ページに設定します。ここでionicアプリケーションで開始ページを設定する方法は?

は結果を達成するためになされるべきであるどのような変更& Registration.html

index.htmlを、app.jsの私のコードですか?

app.js:

.config(function($stateProvider, $urlRouterProvider) { 
$stateProvider 
    .state('Registration', { 
     url: '/Registration', 
     templateUrl: 'templates/Registration.html' 
     controller: 'RegistrationController' 
    }) 
$urlRouterProvider.otherwise('/Registration'); 
}) 

のindex.html:

<body ng-app="starter"> 

<ion-pane> 
    <ion-header-bar class="bar-stable"> 
    <h1 class="title">Demo</h1> 
    </ion-header-bar> 
    <ion-content> 
    </ion-content> 
</ion-pane> 

Registration.html:

<ion-view view-title="Registration"> 
<ion-content class="padding"> 
    <h1>Welcome !</h1> 
    <h1>Please Sign in To Connect</h1> 
    <div class="list"> 
     <button class="button ion-social-linkedin button-positive button-block" >Connect using LinkedIn</button> 
     <button class="button ion-social-google button-positive button-block" >Connect using Google</button> 
    </div> 
</ion-content> 
</ion-view> 
+0

...他のすべてを削除<ion-nav-view></ion-nav-view>を置きますか? – ddepablo

答えて

1

ちょうどあなたがURLである `イオンserve`を実行すると

+0

追加: 現在は正常に動作しています。 –

0

あなたは状態のアプリを使用している場合は、これを試してみてください。

bodyタグの間のindex.htmlで
$urlRouterProvider.otherwise('/app/Registration'); 
+0

変更がうまくいかず、まだ内容が表示されていません。index.htmlページ –

関連する問題