Ionic Barcode Scanner Not Return any Data


I am trying to create a simple that will read the data from a qr code, the apps is working perfectly, it can open the camera and capture the image, the problem is, it cannot show the data/data is blank in the alert as below code.

this is how i do it

cordova plugin add


        <!DOCTYPE html>
            <meta charset="utf-8">
            <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

            <link href="lib/ionic/css/ionic.css" rel="stylesheet">
            <link href="css/style.css" rel="stylesheet">

            <!-- ionic/angularjs js -->
            <script src="lib/ionic/js/ionic.bundle.js"></script>

            <!-- cordova script (this will be a 404 during development) -->
            <script src="lib/ng-cordova.min.js"></script>
            <script src="cordova.js"></script>

            <!-- your app's js -->
            <script src="js/app.js"></script>
            <script src="js/controllers.js"></script>
        <body ng-app="starter">

            <ion-header-bar class="bar-stable">
                <h1 class="title">Ionic Blank Starter</h1>
                <div class="card">
                   <div class="item" ng-controller="ScanCtrl">
                       <button class="button button-block button-positive" ng-click="scanBarcode()">
                           <i class="icon ion-qr-scanner"></i>
                           Scan With Scope


        angular.module('starter', ['ionic', 'starter.controllers', 'ngCordova'])
        .run(function($ionicPlatform) {
          $ionicPlatform.ready(function() {
            if(window.cordova && window.cordova.plugins.Keyboard) {
              // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
              // for form inputs)

              // Don't remove this line unless you know what you are doing. It stops the viewport
              // from snapping when text inputs are focused. Ionic handles this internally for
              // a much nicer keyboard experience.
            if(window.StatusBar) {


    angular.module('starter.controllers', [])

    .controller('ScanCtrl', function($scope, $cordovaBarcodeScanner){
     $scope.scanBarcode = function(){

Any helps would really appreciated.