Writing an AngularJS app in a different approach.