mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
chore(): begin adding ionic components to mono-repo.
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { PageOne } from '../pages/page-one/page-one';
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
export class AppComponent {
|
||||
root = PageOne;
|
||||
}
|
19
packages/ionic-angular/demos/src/button/app/app.module.ts
Normal file
19
packages/ionic-angular/demos/src/button/app/app.module.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { IonicApp, IonicModule } from '../../../../src';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { PageOneModule } from '../pages/page-one/page-one.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
AppComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
IonicModule.forRoot(AppComponent),
|
||||
PageOneModule
|
||||
],
|
||||
bootstrap: [IonicApp]
|
||||
})
|
||||
export class AppModule {}
|
5
packages/ionic-angular/demos/src/button/app/main.ts
Normal file
5
packages/ionic-angular/demos/src/button/app/main.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
@ -0,0 +1,64 @@
|
||||
<ion-header>
|
||||
|
||||
<ion-navbar>
|
||||
<ion-title>Button</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
</ion-header>
|
||||
|
||||
|
||||
<ion-content text-center>
|
||||
|
||||
<h4>Colors</h4>
|
||||
|
||||
<ion-button>Default</ion-button>
|
||||
|
||||
<ion-button color="secondary">Secondary</ion-button>
|
||||
|
||||
<ion-button color="danger">Danger</ion-button>
|
||||
|
||||
<ion-button color="light">Light</ion-button>
|
||||
|
||||
<ion-button color="dark">Dark</ion-button>
|
||||
|
||||
<h4>Shapes</h4>
|
||||
|
||||
<ion-button full>Full Button</ion-button>
|
||||
|
||||
<ion-button block>Block Button</ion-button>
|
||||
|
||||
<ion-button round>Round Button</ion-button>
|
||||
|
||||
<h4>Outlines</h4>
|
||||
|
||||
<ion-button color="secondary" full outline>Outline + Full</ion-button>
|
||||
|
||||
<ion-button color="secondary" block outline>Outline + Block</ion-button>
|
||||
|
||||
<ion-button color="secondary" round outline>Outline + Round</ion-button>
|
||||
|
||||
<h4>Icons</h4>
|
||||
|
||||
<ion-button color="dark">
|
||||
<ion-icon slot="start" name="star"></ion-icon>
|
||||
Left Icon
|
||||
</ion-button>
|
||||
|
||||
<ion-button color="dark">
|
||||
Right Icon
|
||||
<ion-icon slot="end" name="star"></ion-icon>
|
||||
</ion-button>
|
||||
|
||||
<ion-button color="dark">
|
||||
<ion-icon slot="icon-only" name="star"></ion-icon>
|
||||
</ion-button>
|
||||
|
||||
<h4>Sizes</h4>
|
||||
|
||||
<ion-button color="light" large>Large</ion-button>
|
||||
|
||||
<ion-button color="light">Default</ion-button>
|
||||
|
||||
<ion-button color="light" small>Small</ion-button>
|
||||
|
||||
</ion-content>
|
@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { IonicPageModule } from '../../../../../src';
|
||||
|
||||
import { PageOne } from './page-one';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
PageOne,
|
||||
],
|
||||
imports: [
|
||||
IonicPageModule.forChild(PageOne),
|
||||
],
|
||||
entryComponents: [
|
||||
PageOne,
|
||||
]
|
||||
})
|
||||
export class PageOneModule {}
|
@ -0,0 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page-one.html'
|
||||
})
|
||||
export class PageOne {}
|
Reference in New Issue
Block a user