Prevent default action of links by using ng-href instead of href. Changed formatting