We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
记录一些angularJs1.x的使用技巧
The text was updated successfully, but these errors were encountered:
测试: 测试 controller,如果使用含有数据的 dataService,同时该服务基于 html5 的元素,在 photomjs 中会报错,此时可以 mock 整个 dataservice。 demo 代码如下:
beforeEach(function() { audioServiceMock = { errorAudio: { play: function() { return 'errorAudio'; } }, successAudio: { play: function() { return 'successAudio'; } } } }); beforeEach(inject(function(_$httpBackend_, $rootScope, $controller, _PickingWaveService_) { vm = $controller('PackingIntoPackagesController', { $scope: scope, audioService: audioServiceMock }); }
Sorry, something went wrong.
No branches or pull requests
记录一些angularJs1.x的使用技巧
The text was updated successfully, but these errors were encountered: