2016-03-31 59 views
0

Komut isteminde 'ionic serve' girdiğimde Registration.html sayfasını başlangıç ​​sayfam olarak ayarlamak istiyorum. İşteİyonik uygulamada başlangıç ​​sayfası nasıl ayarlanır?

& Registration.html

index.html ne değişiklikler sonucu elde etmek yapılmalıdır, app.js benim kodudur?

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

yerleştirmek? – ddepablo

cevap

1

sadece ... <ion-nav-view></ion-nav-view> her şey çıkarmak

+0

Eklendi: Şimdi iyi çalışıyor .. –

0

Eğer devlet uygulamasını kullanıyorsanız, bu deneyin:

Eğer `url'dir iyonik serve` çalıştırdığınızda body etiketlerinin arasına index.html olarak
$urlRouterProvider.otherwise('/app/Registration'); 
+0

değişiklik işe yaramadı .. hala içeriği gösteriliyor fom the index.html sayfa –

İlgili konular