Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export interface ICustomScope extends ng.IScope {
- }
- export interface ICustomElement extends ng.IAugmentedJQuery {
- }
- export interface ICustomAttributes extends ng.IAttributes {
- }
- export interface ICustomNgModel extends angular.INgModelController {
- }
- export interface ISplitterControlDirective extends ng.IDirective {
- link: (scope: ICustomScope, element: ICustomElement, attrs: ICustomAttributes, modelCtrl: angular.INgModelController) => void;
- }
- class SplitterControlDirective implements ISplitterControlDirective {
- public static factory = (): ng.IDirectiveFactory => {
- const directive = () => new SplitterControlDirective();
- directive.$inject = [];
- return directive;
- }
- public restrict: string = 'A';
- // public require: string = 'ngModel';
- public scope: {} = {
- // updateInputModel: '=updateInputModel',
- };
- /** @ngInject */
- constructor() {
- //
- }
- public link = (scope: ICustomScope, element: ICustomElement, attrs: ICustomAttributes, modelCtrl: angular.INgModelController): void => {
- };
- }
- angular.module('hq.core.directives')
- .directive('splitterControl', SplitterControlDirective.factory());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement