index.js 534 B

12345678910111213141516171819202122232425
  1. /*global angular*/
  2. (function withAngular(angular) {
  3. 'use strict';
  4. angular.module('720kb', [
  5. 'ngRoute',
  6. '720kb.tooltips'
  7. ])
  8. .controller('Ctrl', [
  9. '$scope',
  10. '$timeout',
  11. function controllerCtrl($scope, $timeout) {
  12. $scope.generateHTMLextra = function generateHTMLextra(item) {
  13. return '<i>hello tooltip content' + item + '</i>';
  14. };
  15. $scope.items = ['1','2','4','5'];
  16. $timeout(function () {
  17. $scope.items.push('7');
  18. $scope.items.push('9');
  19. }, 5000);
  20. }]);
  21. }(angular));