Angular 4 custom event | event emiiter service
Event Emitter and data Passing from Child Component to the parent component. Step1 : Create Child Component(mycomponent); cd src/app ng g c mycomponent --flat Step 2: Write Following code into mycomponent.ts import { Component, OnInit , EventEmitter, Output } from...
angular 4 event binding
Handling of user input events using component class is called event handling. Event Names are enclosed in parenthesis(“()”). Different Types of Events https://developer.mozilla.org/en-US/docs/Web/Events In This tutorial Example you will see . How to handle DOM...
What is property Binding in Angular 4
What is property Binding in Angular 4 Property binding allows you to define element attribute values from the component class. It is one-way data binding, as you can only set data from the component to the view. import { Component } from '@angular/core';...
migrating from angular 2 to angular 4
migrating from angular 2 to angular 4 we will learn how we can create our first Angular 4 application or Installation of angular 4 or upgrade existing angular 2 application to angular 4 application. Step 1: First Varify that NPM(Node JS) and Angular CLI is installed...