How can I use Ionic2 component in anguar2


#1

For example if I give tags in angular2 component it should render as if it were written in Ionic framework itself like we do in normally


#2

:thinking: Not sure I follow?

Are you asking how to use ionic components inside of a custom ng2 @Component?


#3

hi @yoyodj

If You want to use ionic component inside custom/reusable ng2 component, you have to specify IONIC_DIRECTIVES in directives property of @Component Decorator, then it will render as expected.

import {IONIC_DIRECTIVES} from 'ionic-angular';
@Component({
   directives: [IONIC_DIRECTIVES]
})