dispatch requestLogin to kickoff the call to the API dispatch(loginError(err.data));
});}
我故意断开我的数据库,以捕获错误Project-0 POST /login/admin Wed, 13 Apr 2016 07:1
一些表单可能会触发延迟加载程序,该加载程序会在指令的post部分预取一些数据,因此会触发HTTP GET。因此,在通用测试的beforeEach中,我必须处理它,否则我会收到意外的请求: get /bla/requests/generateJson/something不需要更多请求
我将$httpBackend.when("GET",//generateJson/(.+)/