Use cordova barcode generator plugin in ionic creator

Hi all.
I have to use this plugin (cordova-barcode-generator) with ionic creator.
I have followed this thread How to user ngCordova with Ionic creator to know how to implement a cordova plugin, but I don’t know which is the correct name to use to add the plugin to the controller.
According to the thread, to use cordova-plugin-geolocation I have to add $cordovaGeolocation
Like this:
function ($scope, $stateParams, $cordovaGeolocation) {

After adding the plugin cordova-barcode-generato in code settings>cordova plugins, I guess I have to write
function ($scope, $stateParams, $cordovaBarcodeGenerator) {
but this doesn’t work.

Where is my error?