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>
yerleştirmek? – ddepablo