Welcome Guest! (App Version 5.16)

websitnero logo name


Decorators in Angular

Decorators are a new concept that will be coming in ES7. These are already part of implemetation in 'TypeScript'.

Decorators are simple functions that take some parameters and provide a certain behavior or functionality.

In simple terms -- we can say decorators add meta-data to the code-pieces they are attached to. They simply provide more meaning to any class, property or other item in JavaScript.

For example @component provides special set of properties to class and provides meaning that it is a component or treat this class as a component.

@Input and @Output add more specific meaning to common variables that this property will be recieved in this component or needs to be emitted out.

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.