Initial commit
This commit is contained in:
11
src/pages/about/about.html
Normal file
11
src/pages/about/about.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<ion-header>
|
||||
<ion-navbar>
|
||||
<ion-title>
|
||||
About
|
||||
</ion-title>
|
||||
</ion-navbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content padding>
|
||||
|
||||
</ion-content>
|
||||
3
src/pages/about/about.scss
Normal file
3
src/pages/about/about.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
page-about {
|
||||
|
||||
}
|
||||
14
src/pages/about/about.ts
Normal file
14
src/pages/about/about.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NavController } from 'ionic-angular';
|
||||
|
||||
@Component({
|
||||
selector: 'page-about',
|
||||
templateUrl: 'about.html'
|
||||
})
|
||||
export class AboutPage {
|
||||
|
||||
constructor(public navCtrl: NavController) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
17
src/pages/contact/contact.html
Normal file
17
src/pages/contact/contact.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<ion-header>
|
||||
<ion-navbar>
|
||||
<ion-title>
|
||||
Contact
|
||||
</ion-title>
|
||||
</ion-navbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
<ion-list-header>Follow us on Twitter</ion-list-header>
|
||||
<ion-item>
|
||||
<ion-icon name="ionic" item-start></ion-icon>
|
||||
@ionicframework
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
3
src/pages/contact/contact.scss
Normal file
3
src/pages/contact/contact.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
page-contact {
|
||||
|
||||
}
|
||||
14
src/pages/contact/contact.ts
Normal file
14
src/pages/contact/contact.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NavController } from 'ionic-angular';
|
||||
|
||||
@Component({
|
||||
selector: 'page-contact',
|
||||
templateUrl: 'contact.html'
|
||||
})
|
||||
export class ContactPage {
|
||||
|
||||
constructor(public navCtrl: NavController) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
17
src/pages/home/home.html
Normal file
17
src/pages/home/home.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<ion-header>
|
||||
<ion-navbar>
|
||||
<ion-title>Home</ion-title>
|
||||
</ion-navbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content padding>
|
||||
<h2>Welcome to Ionic!</h2>
|
||||
<p>
|
||||
This starter project comes with simple tabs-based layout for apps
|
||||
that are going to primarily use a Tabbed UI.
|
||||
</p>
|
||||
<p>
|
||||
Take a look at the <code>src/pages/</code> directory to add or change tabs,
|
||||
update any existing page or create new pages.
|
||||
</p>
|
||||
</ion-content>
|
||||
3
src/pages/home/home.scss
Normal file
3
src/pages/home/home.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
page-home {
|
||||
|
||||
}
|
||||
14
src/pages/home/home.ts
Normal file
14
src/pages/home/home.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NavController } from 'ionic-angular';
|
||||
|
||||
@Component({
|
||||
selector: 'page-home',
|
||||
templateUrl: 'home.html'
|
||||
})
|
||||
export class HomePage {
|
||||
|
||||
constructor(public navCtrl: NavController) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
5
src/pages/tabs/tabs.html
Normal file
5
src/pages/tabs/tabs.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<ion-tabs>
|
||||
<ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab>
|
||||
<ion-tab [root]="tab2Root" tabTitle="About" tabIcon="information-circle"></ion-tab>
|
||||
<ion-tab [root]="tab3Root" tabTitle="Contact" tabIcon="contacts"></ion-tab>
|
||||
</ion-tabs>
|
||||
19
src/pages/tabs/tabs.ts
Normal file
19
src/pages/tabs/tabs.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { AboutPage } from '../about/about';
|
||||
import { ContactPage } from '../contact/contact';
|
||||
import { HomePage } from '../home/home';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'tabs.html'
|
||||
})
|
||||
export class TabsPage {
|
||||
|
||||
tab1Root = HomePage;
|
||||
tab2Root = AboutPage;
|
||||
tab3Root = ContactPage;
|
||||
|
||||
constructor() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user