In this chapter, we will cover the following tasks related to creating custom components, directives, and filters with Angular 2:
Most of Ionic's out-of-the-box features are actually prebuilt components. In this section, you will learn how to create your own custom component using the html
template, which contains Ionic components as well.
Components actually define Angular 2. A component is no more than just a class with self-describing features. For example, <ul>
is a component that you are already familiar with. Previously, you used various Ionic components, such as <ion-list>
and <ion-item>
. A component is a decorator (that is, @Component
) to add metadata to a class to describe the following:
<my-component>
)Of course, there are many other options, but the preceding four options are the most common ones.
18.188.64.66