angular-material-npfixed
Version:
The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M
15 lines (12 loc) • 342 B
JavaScript
angular.module('tooltipDemo', ['ngMaterial'])
.controller('AppCtrl', AppCtrl);
function AppCtrl($scope) {
$scope.demo = {
showTooltip: false,
tipDirection: 'bottom'
};
$scope.demo.delayTooltip = undefined;
$scope.$watch('demo.delayTooltip', function(val) {
$scope.demo.delayTooltip = parseInt(val, 10) || 0;
});
}