mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
fix(icon): remove icon references so that webpack will ignore it.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { IonicApp, IonicModule } from '../../../../..';
|
import { IonicApp, IonicModule } from '../../../../..';
|
||||||
|
|
||||||
@ -17,6 +17,9 @@ import { RootPage } from '../pages/root-page/root-page';
|
|||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
RootPage
|
RootPage
|
||||||
|
],
|
||||||
|
schemas: [
|
||||||
|
CUSTOM_ELEMENTS_SCHEMA
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, ElementRef, QueryList, Renderer, Optional, ViewChild, ViewEncapsulation } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, ContentChild, ElementRef, QueryList, Renderer, Optional, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||||
|
|
||||||
import { Config } from '../../config/config';
|
import { Config } from '../../config/config';
|
||||||
import { Form } from '../../util/form';
|
import { Form } from '../../util/form';
|
||||||
import { Icon } from '../icon/icon';
|
|
||||||
import { Ion } from '../ion';
|
import { Ion } from '../ion';
|
||||||
import { Label } from '../label/label';
|
import { Label } from '../label/label';
|
||||||
import { ItemReorder } from './item-reorder';
|
import { ItemReorder } from './item-reorder';
|
||||||
@ -422,10 +421,10 @@ export class Item extends Ion {
|
|||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
@ContentChildren(Icon)
|
// @ContentChildren(Icon)
|
||||||
set _icons(icons: QueryList<Icon>) {
|
// set _icons(icons: QueryList<Icon>) {
|
||||||
icons.forEach(icon => {
|
// icons.forEach(icon => {
|
||||||
icon.setElementClass('item-icon', true);
|
// icon.setElementClass('item-icon', true);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ export { Col } from './components/grid/col';
|
|||||||
export { Grid } from './components/grid/grid';
|
export { Grid } from './components/grid/grid';
|
||||||
export { Row } from './components/grid/row';
|
export { Row } from './components/grid/row';
|
||||||
export { Ion } from './components/ion';
|
export { Ion } from './components/ion';
|
||||||
export { Icon } from './components/icon/icon';
|
|
||||||
export { Img } from './components/img/img';
|
export { Img } from './components/img/img';
|
||||||
export { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
export { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
||||||
export { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
export { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
||||||
|
@ -60,7 +60,6 @@ import { FabList } from './components/fab/fab-list';
|
|||||||
import { Col } from './components/grid/col';
|
import { Col } from './components/grid/col';
|
||||||
import { Grid } from './components/grid/grid';
|
import { Grid } from './components/grid/grid';
|
||||||
import { Row } from './components/grid/row';
|
import { Row } from './components/grid/row';
|
||||||
import { Icon } from './components/icon/icon';
|
|
||||||
import { Img } from './components/img/img';
|
import { Img } from './components/img/img';
|
||||||
import { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
import { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
||||||
import { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
import { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
||||||
@ -192,7 +191,6 @@ import { BooleanInput } from './bindings/angular/components/boolean-input';
|
|||||||
FabList,
|
FabList,
|
||||||
Grid,
|
Grid,
|
||||||
Img,
|
Img,
|
||||||
Icon,
|
|
||||||
InfiniteScroll,
|
InfiniteScroll,
|
||||||
InfiniteScrollContent,
|
InfiniteScrollContent,
|
||||||
Item,
|
Item,
|
||||||
@ -286,7 +284,6 @@ import { BooleanInput } from './bindings/angular/components/boolean-input';
|
|||||||
FabList,
|
FabList,
|
||||||
Grid,
|
Grid,
|
||||||
Img,
|
Img,
|
||||||
Icon,
|
|
||||||
InfiniteScroll,
|
InfiniteScroll,
|
||||||
InfiniteScrollContent,
|
InfiniteScrollContent,
|
||||||
Item,
|
Item,
|
||||||
|
Reference in New Issue
Block a user