Ionic Keyboard Plugin

Hello!
I’ve installed the keyboard plugin:

cordova plugin add https://github.com/driftyco/ionic-plugins-keyboard.git

But how i can use it? I tried a little piece of code like this

angular.module('app.controllers', [])
.controller('TestCtrl', function($scope) {
    $scope.doSearch = function() {
         console.log("before");
         Keyboard.close();
         console.log("after");
    }

But when i call the function from view ( trying to ng-submit a fake search ) in the console i have only the first log … Keyboard.close(); break following code …

I’m trying directly on my ios device building app from XCODE … someone can help me?
Thanks!

Close, but try this.

 $scope.doSearch = function() {
         console.log("before");
         cordova.plugins.Keyboard.close();
         console.log("after");
    }