(function() { 'use strict'; angular .module('angular') .controller('MainController', MainController); /** @ngInject */ function MainController($timeout, webDevTec, toastr) { var vm = this; vm.awesomeThings = []; vm.classAnimation = ''; vm.creationDate = 1452020281605; vm.showToastr = showToastr; activate(); function activate() { getWebDevTec(); $timeout(function() { vm.classAnimation = 'rubberBand'; }, 4000); } function showToastr() { toastr.info('Fork generator-gulp-angular'); vm.classAnimation = ''; } function getWebDevTec() { vm.awesomeThings = webDevTec.getTec(); angular.forEach(vm.awesomeThings, function(awesomeThing) { awesomeThing.rank = Math.random(); }); } } })();