mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(demos): ngc compile
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,3 +33,5 @@ scripts/build/e2e-generated-tsconfig.json
|
|||||||
demos/node_modules
|
demos/node_modules
|
||||||
demos/src/**/*.js
|
demos/src/**/*.js
|
||||||
demos/src/**/*.ngfactory.ts
|
demos/src/**/*.ngfactory.ts
|
||||||
|
demos/src/**/*.d.ts
|
||||||
|
demos/src/**/*.metadata.json
|
||||||
|
28
demos/package.json
Normal file
28
demos/package.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "ionic-demos",
|
||||||
|
"private": true,
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "ionic demos",
|
||||||
|
"author": "Ionic Team <hi@ionic.io> (http://ionic.io)",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/common": "2.0.0-rc.7",
|
||||||
|
"@angular/compiler": "2.0.0-rc.7",
|
||||||
|
"@angular/core": "2.0.0-rc.7",
|
||||||
|
"@angular/forms": "2.0.0-rc.7",
|
||||||
|
"@angular/http": "2.0.0-rc.7",
|
||||||
|
"@angular/platform-browser": "2.0.0-rc.7",
|
||||||
|
"@angular/platform-browser-dynamic": "2.0.0-rc.7",
|
||||||
|
"@angular/platform-server": "2.0.0-rc.7",
|
||||||
|
"ionic-angular": "nightly",
|
||||||
|
"ionic-native": "1.3.20",
|
||||||
|
"ionicons": "3.0.0",
|
||||||
|
"rxjs-es": "5.0.0-beta.12",
|
||||||
|
"zone.js": "^0.6.23"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular/compiler-cli": "0.6.2",
|
||||||
|
"@ionic/app-scripts": "latest",
|
||||||
|
"typescript": "2.0.2"
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,5 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'page.html'
|
templateUrl: 'page.html'
|
||||||
})
|
})
|
||||||
|
@ -17,7 +17,8 @@ export class ApiDemoPage {
|
|||||||
stannis: true,
|
stannis: true,
|
||||||
petyr: false,
|
petyr: false,
|
||||||
hodor: true,
|
hodor: true,
|
||||||
catelyn: true
|
catelyn: true,
|
||||||
|
bronn: false
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,22 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicApp, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicModule } from 'ionic-angular';
|
||||||
import { ApiDemoApp, ApiDemoPage } from './app.component';
|
import { ApiDemoApp, ApiDemoPage, PushPage, TabPage } from './app.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
ApiDemoApp,
|
ApiDemoApp,
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
PushPage,
|
||||||
|
TabPage
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forRoot(ApiDemoApp)
|
IonicModule.forRoot(ApiDemoApp)
|
||||||
],
|
],
|
||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
PushPage,
|
||||||
|
TabPage
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
@ -50,11 +50,11 @@
|
|||||||
|
|
||||||
<!-- this has to be formatted weird for pre -->
|
<!-- this has to be formatted weird for pre -->
|
||||||
<pre margin>
|
<pre margin>
|
||||||
ionicBootstrap(MyApp, [], {
|
<!--ionicBootstrap(MyApp, [], {
|
||||||
backButtonIcon: "{{initialConfig.backButtonIcon}}"
|
backButtonIcon: "{{initialConfig.backButtonIcon}}"
|
||||||
iconMode: "{{initialConfig.iconMode}}"
|
iconMode: "{{initialConfig.iconMode}}"
|
||||||
tabsPlacement: "{{initialConfig.tabsPlacement}}"
|
tabsPlacement: "{{initialConfig.tabsPlacement}}"
|
||||||
});</pre>
|
});--></pre>
|
||||||
|
|
||||||
<div padding>
|
<div padding>
|
||||||
<button ion-button block color="secondary" (click)="push()">
|
<button ion-button block color="secondary" (click)="push()">
|
||||||
|
@ -2,7 +2,7 @@ import { Component } from '@angular/core';
|
|||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'main.html'
|
templateUrl: 'page.html'
|
||||||
})
|
})
|
||||||
export class ApiDemoPage {}
|
export class ApiDemoPage {}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ export class CleanLocalDataPipe implements PipeTransform {
|
|||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'main.html'
|
templateUrl: 'page.html'
|
||||||
})
|
})
|
||||||
export class ApiDemoPage {
|
export class ApiDemoPage {
|
||||||
local: Storage;
|
local: Storage;
|
||||||
@ -84,4 +84,3 @@ export class ApiDemoPage {
|
|||||||
export class ApiDemoApp {
|
export class ApiDemoApp {
|
||||||
root = ApiDemoPage;
|
root = ApiDemoPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicApp, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicModule } from 'ionic-angular';
|
||||||
import { ApiDemoApp, ApiDemoPage } from './app.component';
|
import { ApiDemoApp, ApiDemoPage, CleanLocalDataPipe } from './app.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
ApiDemoApp,
|
ApiDemoApp,
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
CleanLocalDataPipe
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forRoot(ApiDemoApp)
|
IonicModule.forRoot(ApiDemoApp)
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicApp, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicModule } from 'ionic-angular';
|
||||||
import { ApiDemoApp, ApiDemoPage } from './app.component';
|
import { ApiDemoApp, ApiDemoPage, PushPage } from './app.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
ApiDemoApp,
|
ApiDemoApp,
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
PushPage
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forRoot(ApiDemoApp)
|
IonicModule.forRoot(ApiDemoApp)
|
||||||
|
@ -15,7 +15,7 @@ export class ApiDemoPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'page-page.html'
|
templateUrl: 'push-page.html'
|
||||||
})
|
})
|
||||||
export class PushPage {
|
export class PushPage {
|
||||||
pageNum = pageNum;
|
pageNum = pageNum;
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicApp, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicModule } from 'ionic-angular';
|
||||||
import { ApiDemoApp, ApiDemoPage } from './app.component';
|
import { ApiDemoApp, ApiDemoPage, PushPage } from './app.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
ApiDemoApp,
|
ApiDemoApp,
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
PushPage
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forRoot(ApiDemoApp)
|
IonicModule.forRoot(ApiDemoApp)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';
|
import { Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||||
import { NavParams, PopoverController } from 'ionic-angular';
|
import { NavParams, PopoverController } from 'ionic-angular';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `
|
template: `
|
||||||
<ion-list radio-group [(ngModel)]="fontFamily" (ionChange)="changeFontFamily()">
|
<ion-list radio-group [(ngModel)]="fontFamily" (ionChange)="changeFontFamily()">
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicApp, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicModule } from 'ionic-angular';
|
||||||
import { ApiDemoApp, ApiDemoPage } from './app.component';
|
import { ApiDemoApp, ApiDemoPage, PopoverRadioPage } from './app.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
ApiDemoApp,
|
ApiDemoApp,
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
PopoverRadioPage
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forRoot(ApiDemoApp)
|
IonicModule.forRoot(ApiDemoApp)
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-label>Pets</ion-label>
|
<ion-label>Pets</ion-label>
|
||||||
<ion-select [(ngModel)]="pets" multiple="true" [alertOptions]="petAlertOpts">
|
<ion-select [(ngModel)]="pets" multiple="true" [selectOptions]="petAlertOpts">
|
||||||
<ion-option *ngFor="let o of petData" [value]="o.value">{{o.text}}</ion-option>
|
<ion-option *ngFor="let o of petData" [value]="o.value">{{o.text}}</ion-option>
|
||||||
</ion-select>
|
</ion-select>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
@ -2,7 +2,7 @@ import { Component, NgModule, ViewEncapsulation } from '@angular/core';
|
|||||||
import { IonicApp, IonicModule } from 'ionic-angular';
|
import { IonicApp, IonicModule } from 'ionic-angular';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: 'tab',
|
template: '<div>johnny utah</div>',
|
||||||
})
|
})
|
||||||
export class TabPage {}
|
export class TabPage {}
|
||||||
|
|
||||||
@ -23,4 +23,3 @@ export class ApiDemoPage {
|
|||||||
export class ApiDemoApp {
|
export class ApiDemoApp {
|
||||||
root = ApiDemoPage;
|
root = ApiDemoPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,8 @@ import { ApiDemoApp, ApiDemoPage, TabPage } from './app.component';
|
|||||||
],
|
],
|
||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
ApiDemoPage
|
ApiDemoPage,
|
||||||
|
TabPage
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
"types": ["jasmine", "protractor"]
|
"types": ["jasmine", "protractor"]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./src/**/app.module.ts",
|
"./src/toolbar/app.module.ts",
|
||||||
"./src/**/main.ts"
|
"./src/toolbar/main.ts"
|
||||||
],
|
],
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"buildOnSave": false,
|
"buildOnSave": false,
|
||||||
"atom": {
|
"atom": {
|
||||||
"rewriteTsconfig": false
|
"rewriteTsconfig": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user