i need to use angular $timeout to show element for 2 seconds. it works with $scope but i don't now how to use it with "this" keyword an "controller as ..." syntax.
https://plnkr.co/edit/GPWRg4acYVrP1Ry00D7z?p=preview
angular.module("test", [])
.controller("testCtrl", function($scope, $timeout){
$scope.boo = false;
$scope.disappear = function(){
$scope.boo = true;
$timeout(function () {
$scope.boo = false;
}, 2000);
}
});