Working on converting issues to AngularJS