1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Add support for video demos

This commit is contained in:
Mumshad Mannambeth 2017-07-13 11:47:20 -04:00
parent a35b31f815
commit 653c157263
7 changed files with 122 additions and 4 deletions

View file

@ -5,10 +5,32 @@ import routing from './main.routes';
export class MainController {
/*@ngInject*/
constructor($http, $scope, appConfig) {
constructor($http, $scope, $uibModal, appConfig) {
'ngInject';
this.$http = $http;
$scope.appVersion = appConfig.version;
this.videos = appConfig.videos;
this.showVideoModal = function (video) {
var modalInstance = $uibModal.open({
animation: true,
template: require('../modals/video/video.html'),
controller: 'VideoController',
size: 'md',
backdrop: 'static',
keyboard: false,
closeByEscape: false,
closeByDocument: false,
resolve: {
video: function () {
return video
}
}
});
};
}
}