Implementation of tab based navigation using AngularJS