AngularJS directive simulating Express.js like next() feature in angularjs.