using controllerAs syntax