[users at bb.net] buildbot-data issue
Greg MacDonald
gmacdonald at trionworlds.com
Thu Nov 5 02:15:22 UTC 2015
Hi Everyone,
I'm trying to use the buildbot-data angular service (for 0.9.0b2) for a separate web ui and I'm having problems getting started. Bower installs buildbot-data fine, but I get an error when I try to use it:
Error: [$injector:unpr] Unknown provider: bbDataProvider <- bbData
Here's the code that tries to use it. It's not getting past the dependency injection.
angular.module('myApp.buildStatus', ['bbData', 'bbData'])
.directive("buildStatus", function() {
return {
restrict: "E",
replace: true,
scope: {
name: '@',
builder: '@',
status: '='
},
templateUrl: 'directives/build_status/build_status.html',
controller: ['$scope', '$attrs', 'bbData', function($scope, $attrs, dataService) {
$scope.builder = $attrs.builder;
$scope.name = $attrs.name;
$scope.status = 'unknown';
}]
}
});
App dependency works:
angular.module('myApp', [
'bbData',
'ngMaterial',
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.version',
'myApp.buildStatus'
]).
config(['$routeProvider', '$httpProvider', function($routeProvider, $httpProvider) {
$routeProvider.otherwise({redirectTo: '/view1'});
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}]);
And It's being included like this in index.html
<script src="bower_components/buildbot-data/dist/scripts.js"></script>
I'm not sure where to go from here. Any help is greatly appreciated. Thx! :)
-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151105/ba821d7e/attachment.html>
More information about the users
mailing list