title: Cannot read property 'impl' of undefined
body: <p>I wrote some small code in angular js. It works but i get some error "Cannot read property 'impl' of undefined". Does somebody knows what that?</p>
  
  <p>This is my html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html lang="en" ng-app="myApp"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;Validation&lt;/title&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"&gt;&lt;/script&gt;
          &lt;script src="js/matchmedia-ng.js"&gt;&lt;/script&gt;
          &lt;script src="js/angular-touch.js"&gt;&lt;/script&gt;
          &lt;script src="js/module.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body ng-controller="MainController"&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my module:</p>
  
  <pre><code>var myApp = angular.module('myApp',['ngTouch','matchmedia-ng']);
  
  myApp.controller('MainController', ['$scope', 'matchmedia',
      function($scope, matchmedia) {
      $scope.desktop = matchmedia.isDesktop();
      $scope.tablet =matchmedia.isTablet()
      $scope.phone = matchmedia.isPhone();
          if($scope.desktop){
              alert("desktop");
          }
          else if($scope.tablet){
              alert("tablet");
          }
          else if($scope.phone){
              alert("phone");
          }
  }]);
  </code></pre>
  
  <p>This is an errror:
  TypeError {stack: (...), message: "Cannot read property 'impl' of undefined"}message: "Cannot read property 'impl' of undefined"stack: (...)</p>