Angular 2 [PART-9 ] Angular component input properties

Examle for geting data for employee filter radio buttons [all,male,female] Steps *Add property Input in chiled Component (filteremployeelist.component.ts) @Input() all : number; @Input() male : number; @Input() female : number; *Add function for get data in parent Component(listemployee.component.ts) getTotalEmployeesCount(): number{ return this.employees.length; } getTotalMaleEmployeesCount(): number{ return this.employees.filter(e => e.gender === “Male”).length; } getTotalFemaleEmployeesCount(): number{ return […]

Angular 2 [PART-4] Components

Components Components are the most basic building block of an UI in an Angular application. An Angular application is a tree of Angular components. Angular components are a subset of directives. Unlike directives, components always have a template and only one component can be instantiated per an element in a template. By Default Path will […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top
Optimized with PageSpeed Ninja