angular - Angular2: Difference between Decoraters -


i new angular2 , want clear concepts referred many other post still unclear. issue not able understand high level languages being used in tutorials please can me understand in simple language.

  1. what difference between @input, @output , @viewchild. can access child data using @output makes @viewchild different @output
  2. what @viewcontent? example
  3. is way access parent content child use @viewchild access child content
  4. ngonchanges, ngoninit, ngdocheck & ngondestroy
  5. i confused term initializes component/directive.
  6. ngaftercontentinit, ngaftercontentchecked, ngafterviewinit & ngafterviewchecked?

what difference between @input, @output , @viewchild. can access child data using @output makes @viewchild different @output

http://learnangular2.com/inputs/ http://learnangular2.com/outputs/ http://learnangular2.com/viewchild/

what @viewcontent? example haven't heard of @viewcontent

is way access parent content child use @viewchild access child content

you use service or pass data down using @input more here: https://angular.io/docs/ts/latest/cookbook/component-communication.html

ngonchanges, ngoninit, ngdocheck & ngondestroy

please read angular tutorial: https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html

i confused term initializes component/directive.

i'm not sure mean that, here post clarification:

@directive v/s @component in angular2

ngaftercontentinit, ngaftercontentchecked, ngafterviewinit & ngafterviewchecked?

please read angular tutorial: https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -