DefinitelyTyped/angular-fullscreen/angular-fullscreen-tests.ts
Julien P 6b6a55e3cf Add angular-fullscreen type definition
- Add interface for Fullscreen type definition
- Wrap it in angular.fullscreen module
- Add test Angular module
2016-03-01 16:57:25 +01:00

13 lines
363 B
TypeScript

/// <reference path="angular-fullscreen.d.ts" />
angular
.module('TestApp', ['FBAngular'])
.controller('TestCtrl', (Fullscreen: ng.fullscreen.IFullscreen) => {
Fullscreen.all();
Fullscreen.toggleAll();
Fullscreen.enable(document.getElementById('test-id'));
Fullscreen.cancel();
Fullscreen.isEnabled();
Fullscreen.isSupported();
});