Angularjs update scope variable from directive example