mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
remove source references to ionic2/components
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
// DON'T reference this file in the source. Only in demos.
|
||||
export * from 'ionic2/components/action-menu/action-menu'
|
||||
export * from 'ionic2/components/alert/alert'
|
||||
export * from 'ionic2/components/aside/aside'
|
||||
|
@ -1,30 +0,0 @@
|
||||
import {Component, NgElement, Template} from 'angular2/angular2';
|
||||
|
||||
@Component({
|
||||
selector: '[red-bg]'
|
||||
})
|
||||
@Template({
|
||||
inline: 'red template'
|
||||
})
|
||||
export class RedBgStyler {
|
||||
constructor(
|
||||
element:NgElement
|
||||
) {
|
||||
element.domElement.style.background = 'red';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: '[blue-bg]'
|
||||
})
|
||||
@Template({
|
||||
inline: 'blue template'
|
||||
})
|
||||
export class BlueTextStyler {
|
||||
constructor(
|
||||
element:NgElement
|
||||
) {
|
||||
element.domElement.style.color = 'blue';
|
||||
}
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
import {Component, Template, bootstrap} from 'angular2/angular2';
|
||||
import {Tabs, Tab} from 'ionic2/components/tabs/tabs2';
|
||||
|
||||
/*
|
||||
@Route('tabs')
|
||||
*/
|
||||
@Component({
|
||||
selector: 'tabs-page'
|
||||
})
|
||||
@Template({
|
||||
inline: `
|
||||
<ion-tabs>
|
||||
<ion-tab title="One">
|
||||
One content
|
||||
</ion-tab>
|
||||
<ion-tab title="Two">
|
||||
Two content
|
||||
</ion-tab>
|
||||
</ion-tabs>
|
||||
`,
|
||||
directives: [Tabs, Tab]
|
||||
})
|
||||
export class TabsPage {
|
||||
constructor() {
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
<my-app>
|
||||
Loading...
|
||||
</my-app>
|
@ -1,38 +0,0 @@
|
||||
import {DynamicComponent, Component, Template, bootstrap, NgElement} from 'angular2/angular2';
|
||||
import {Inject} from 'angular2/di';
|
||||
import {PrivateComponentLoader} from 'angular2/src/core/compiler/private_component_loader';
|
||||
import {PrivateComponentLocation} from 'angular2/src/core/compiler/private_component_location';
|
||||
import {RedBgStyler, BlueTextStyler} from 'ionic2/components/stylers';
|
||||
|
||||
@DynamicComponent({
|
||||
selector: 'dynamic-component',
|
||||
services: [PrivateComponentLoader, PrivateComponentLocation]
|
||||
})
|
||||
class MyDynamic {
|
||||
|
||||
constructor(
|
||||
loader:PrivateComponentLoader,
|
||||
location:PrivateComponentLocation
|
||||
) {
|
||||
loader.load(RedBgStyler, location);
|
||||
loader.load(BlueTextStyler, location);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'my-app'
|
||||
})
|
||||
@Template({
|
||||
inline: `
|
||||
<dynamic-component>Hello!</dynamic-component>
|
||||
`,
|
||||
directives: [MyDynamic],
|
||||
})
|
||||
class MyApp {
|
||||
constructor() {
|
||||
console.log('MyApp loaded');
|
||||
}
|
||||
}
|
||||
|
||||
bootstrap(MyApp);
|
@ -1,5 +1,5 @@
|
||||
import {Parent, NgElement, Decorator} from 'angular2/angular2'
|
||||
import {Item} from 'ionic2/components'
|
||||
import {Item} from 'ionic2/components/item/item'
|
||||
import {SlideGesture} from 'ionic2/gestures/slide-gesture'
|
||||
|
||||
@Decorator({
|
||||
|
@ -1,6 +1,7 @@
|
||||
import {DynamicComponent, Ancestor, NgElement} from 'angular2/angular2'
|
||||
import {Optional} from 'angular2/src/di/annotations'
|
||||
import {NavViewport, Tabs} from 'ionic2/components'
|
||||
import {NavViewport} from 'ionic2/components/nav-viewport/nav-viewport'
|
||||
import {Tabs} from 'ionic2/components/tabs/tabs'
|
||||
import {PrivateComponentLoader} from 'angular2/src/core/compiler/private_component_loader'
|
||||
import {PrivateComponentLocation} from 'angular2/src/core/compiler/private_component_location'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {bootstrap} from 'angular2/core'
|
||||
import {Component, Template} from 'angular2/angular2'
|
||||
import {NavViewport} from 'ionic2/components'
|
||||
import {NavViewport} from 'ionic2/components/nav-viewport/nav-viewport'
|
||||
import {Log} from 'ionic2/util'
|
||||
import {FirstPage} from 'app/pages/first-page'
|
||||
|
||||
|
@ -6,7 +6,9 @@ import {
|
||||
PropertySetter,
|
||||
For
|
||||
} from 'angular2/angular2';
|
||||
import {NavViewport, NavView, Tabs} from 'ionic2/components'
|
||||
import {NavViewport} from 'ionic2/components/nav-viewport/nav-viewport'
|
||||
import {NavView} from 'ionic2/components/nav-view/nav-view'
|
||||
import {Tabs} from 'ionic2/components/tabs/tabs'
|
||||
import {IonicComponent} from 'ionic2/config/component'
|
||||
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import {NgElement, Component, Template, Ancestor} from 'angular2/angular2'
|
||||
import {Optional} from 'angular2/src/di/annotations'
|
||||
import {BackButton} from 'ionic2/components/toolbar/back-button'
|
||||
import {Tabs, NavViewport, NavView} from 'ionic2/components'
|
||||
import {ComponentConfig} from 'ionic2/config/component-config'
|
||||
import {raf} from 'ionic2/util/dom'
|
||||
|
||||
|
@ -2,9 +2,6 @@ import {NgElement, Component, Template, Parent, Ancestor} from 'angular2/angular
|
||||
import {Toolbar} from 'ionic2/components/toolbar/toolbar'
|
||||
import {ComponentConfig} from 'ionic2/config/component-config'
|
||||
|
||||
import {Tabs, NavViewport, NavView} from 'ionic2/components'
|
||||
import {Optional} from 'angular2/src/di/annotations'
|
||||
|
||||
export let ViewConfig = new ComponentConfig('view')
|
||||
|
||||
@Component({
|
||||
|
Reference in New Issue
Block a user