Register, Main, AngularJS