Below is a scratch of an application I'm working on:
<!doctype html>
<html ng-app>
<head>
<script src="/bower_components/angular/angular.js"></script>
<script src="/bower_components/angular-youtube-mb/dist/angular-youtube-embed.min.js"></script>
<script type="text/javascript">
var myApp = angular.module('myApp', ['youtube-embed']);
myApp.controller('MyCtrl', function ($scope) {
// have a video id
$scope.theBestVideo = 'i9MHigUZKEM';
});
</script>
</head>
<body ng-app="myApp">
<div ng-controller="MyCtrl">
<youtube-video video-id="theBestVideo"></youtube-video>
</div>
</body>
</html>
I can't find what is wrong, but I can see the Argument 'MyCtrl' is not a function, got undefined error in the chrome console. I think it's all there: the app, the controller, one bound to another. Can somebody point me out what is the problem here?
edit: in case it's relevant, I'm using 1.2.28 angular.js