Calling function in controller to use plugin

In the doc (https://github.com/apache/cordova-plugin-inappbrowser/blob/master/doc/index.md) it says start with this

var ref = cordova.InAppBrowser.open(url, target, options);

but within my controler that code didn’t responde anything, but it worked when I used window.open, like

$scope.Open_Video=function()
    {
        window.open('https://www.youtube.com/watch?v=09R8_2nJtjg&feature=player_embedded','_blank','toolbar=yes');
    }

Any idea why? Although it work using window() but I can’t use their options…