# AngularJS to Angular concepts: Quick reference
*Angular* is the name for the Angular of today and tomorrow.
*AngularJS* is the name for all v1.x versions of Angular.
This guide helps you transition from AngularJS to Angular
by mapping AngularJS syntax to the corresponding Angular syntax.
**See the Angular syntax in this
When using the `controller as` syntax, the binding is prefixed with the controller alias `vm` or `$ctrl` because you have to be specific about the source. |
For more information, see the [Interpolation][AioGuideInterpolation] guide. |
### Filters → pipes
| AngularJS | Angular |
|:--- |:--- |
| | character and one or more filters.
This example filters the `title` property to uppercase. | | character to filter output, but now you call them **pipes**. Many, but not all, of the built-in filters from AngularJS are built-in pipes in Angular.
For more information, see [Filters/pipes][AioGuideAjsQuickReferenceFiltersPipes]. |
### Local variables → input variables
| AngularJS | Angular |
|:--- |:--- |
|
For more information, see the [Structural directive shorthand][AioGuideStructuralDirectivesStructuralDirectiveShorthand] section of [Structural Directives][AioGuideStructuralDirectives]. |
## Template directives
AngularJS provides more than seventy built-in directives for templates.
Many of them are not needed in Angular because of its more capable and expressive binding system.
The following are some of the key AngularJS built-in directives and their equivalents in Angular.
### `ng-app` → bootstrapping
| AngularJS | Angular |
|:--- |:--- |
| ng-app
Although you can bootstrap an AngularJS application in code, many applications bootstrap declaratively with the `ng-app` directive, giving it the name of the module \(`movieHunter`\) of the application. | ng-class
In the first example, the `active` class is applied to the element if `isActive` is true.
You can specify multiple classes, as shown in the second example. | ngClass
In the first example, the `active` class is applied to the element if `isActive` is true.
You can specify multiple classes, as shown in the second example.
Angular also has **class binding**, which is a good way to add or remove a single class, as shown in the third example.
For more information see [Attribute, class, and style bindings][AioGuideAttributeBinding] page. |
### `ng-click` → Bind to the `click` event
| AngularJS | Angular |
|:--- |:--- |
| ng-click
In the first example, when the user clicks the button, the `toggleImage()` method in the controller referenced by the `vm` `controller as` alias is executed.
The second example demonstrates passing in the `$event` object, which provides details about the event to the controller. | click event
For event binding, define the name of the target event within parenthesis and specify a template statement, in quotes, to the right of the equals. Angular then sets up an event handler for the target event. When the event is raised, the handler executes the template statement.
In the first example, when a user clicks the button, the `toggleImage()` method in the associated component is executed.
The second example demonstrates passing in the `$event` object, which provides details about the event to the component.
For a list of DOM events, see [Event reference][MdnDocsWebEvents].
For more information, see the [Event binding][AioGuideEventBinding] page. |
### `ng-controller` → component decorator
| AngularJS | Angular |
|:--- |:--- |
| ng-controller
For more information, see [Architecture Overview][AioGuideArchitectureComponents]. |
### `ng-hide` → Bind to the `hidden` property
| AngularJS | Angular |
|:--- |:--- |
| ng-hidehidden propertyng-href
In AngularJS, the `ng-href` is often used to activate a route as part of navigation.
href propertyng-if
In this example, the `