mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +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 { IonicApp, IonicModule } from '../../../../..';
|
||||
|
||||
@ -17,6 +17,9 @@ import { RootPage } from '../pages/root-page/root-page';
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
RootPage
|
||||
],
|
||||
schemas: [
|
||||
CUSTOM_ELEMENTS_SCHEMA
|
||||
]
|
||||
})
|
||||
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 { Form } from '../../util/form';
|
||||
import { Icon } from '../icon/icon';
|
||||
import { Ion } from '../ion';
|
||||
import { Label } from '../label/label';
|
||||
import { ItemReorder } from './item-reorder';
|
||||
@ -422,10 +421,10 @@ export class Item extends Ion {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@ContentChildren(Icon)
|
||||
set _icons(icons: QueryList<Icon>) {
|
||||
icons.forEach(icon => {
|
||||
icon.setElementClass('item-icon', true);
|
||||
});
|
||||
}
|
||||
// @ContentChildren(Icon)
|
||||
// set _icons(icons: QueryList<Icon>) {
|
||||
// icons.forEach(icon => {
|
||||
// icon.setElementClass('item-icon', true);
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
@ -23,7 +23,6 @@ export { Col } from './components/grid/col';
|
||||
export { Grid } from './components/grid/grid';
|
||||
export { Row } from './components/grid/row';
|
||||
export { Ion } from './components/ion';
|
||||
export { Icon } from './components/icon/icon';
|
||||
export { Img } from './components/img/img';
|
||||
export { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
||||
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 { Grid } from './components/grid/grid';
|
||||
import { Row } from './components/grid/row';
|
||||
import { Icon } from './components/icon/icon';
|
||||
import { Img } from './components/img/img';
|
||||
import { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
||||
import { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
||||
@ -192,7 +191,6 @@ import { BooleanInput } from './bindings/angular/components/boolean-input';
|
||||
FabList,
|
||||
Grid,
|
||||
Img,
|
||||
Icon,
|
||||
InfiniteScroll,
|
||||
InfiniteScrollContent,
|
||||
Item,
|
||||
@ -286,7 +284,6 @@ import { BooleanInput } from './bindings/angular/components/boolean-input';
|
||||
FabList,
|
||||
Grid,
|
||||
Img,
|
||||
Icon,
|
||||
InfiniteScroll,
|
||||
InfiniteScrollContent,
|
||||
Item,
|
||||
|
Reference in New Issue
Block a user