How two way data bind works in angularjs with example