$apply() is used to notify that something has happened outside of the AngularJS domain $apply forces a $digest cycle
$apply() is used to notify that something has happened outside of the AngularJS domain
$apply forces a $digest cycle