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:
parent
a35b31f815
commit
653c157263
7 changed files with 122 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue