Now we need to create our first component which will contain the form that the user needs to fill in order to add a new **Post**.
Components encourage code reuse
Aim to create a component for every feature so that you can reuse it later on.
Open `angular/app/components/create_post_form/create_post_form.component.html
` in your editor and add the relevant HTML form.
And then update your `create_post_form.component.js
` code to write the controller's logic
Then you need to edit your angular/index.components.js to import this component
EcmaScript 6
We are writing in EcmaScript 6 which is the upcoming version of JavaScript (EcmaScript 5). Here's a good resource for [learning EcmaScript 6](🔗).
Prefer a screencast?