angularjs routing,alerts