angular-northstar
Version:
Angular Module with helpful directives and services for interfacing with IBM V18/Northstar
45 lines (40 loc) • 1.11 kB
JavaScript
/*
* Licensed Materials - Property of IBM
*
* (C) Copyright IBM Corp. 2016 All Rights Reserved
*
* US Government Users Restricted Rights - Use, duplication, or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
**/
( function () {
'use strict';
angular
.module( 'angular-northstar.twisty', [] );
} )();
/*
* Licensed Materials - Property of IBM
*
* (C) Copyright IBM Corp. 2016 All Rights Reserved
*
* US Government Users Restricted Rights - Use, duplication, or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* @author: Tom Ratcliffe <tomratcliffe@uk.ibm.com>
**/
( function () {
'use strict';
angular
.module( 'angular-northstar.twisty' )
.directive( 'northstarTwisty', ['$compile', northstarTwisty] );
function northstarTwisty () {
return {
restrict: 'A',
compile: function ( element ) {
/*
Initialise the twisty on this element
*/
angular.element( element ).twisty();
}
};
}
} )();