title: A simple Mean app not working
body: <p>I am trying to run a simple mean app and it is not working. i get the following error : <a href="http://errors.angularjs.org/1.4.9/ng/areq?p0=meetupsController&amp;p1=not%20a%20function%2C%20got%20undefined" rel="nofollow noreferrer">http://errors.angularjs.org/1.4.9/ng/areq?p0=meetupsController&amp;p1=not%20a%20function%2C%20got%20undefined</a> (Argument 'meetupsController' is not a function, got undefined)</p>
  
  <p>Here is my code </p>
  
  <p>server.js </p>
  
  <pre><code>var express = require('express'),
      app     = express();
  
  app.get('/', function(req, res){
      res.sendfile(__dirname + '/client/views/index.html');
  
  });
  
  
  app.use('/js', express.static(__dirname + '/client/js'));
  app.listen(3000, function() {
  console.log('I mlistening on 3000');
  })
  </code></pre>
  
  <p>my angular controller :</p>
  
  <pre><code>var app = angular.module('meetupApp', ['ngResource']);
  app.controller('meetupsController', ['$scope', '$resource', function($scope, $resource){
  
      $scope.meetups = [
       {name : "First"},
       {name : "second"},
      ]
  
  $scope.createMeetup = function(){
      $scope.meetups.push({name: $scope.meetupName});
      $scope.meetupName='';
  }
  
  }])
  </code></pre>
  
  <p>mu html file:</p>
  
  <pre><code>&lt;html ng-app&gt;
    &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
  
      &lt;div ng-controller="meetupsController"&gt;
          &lt;h1&gt;There are {{meetups.length}} meetups&lt;/h1&gt;
          &lt;ul&gt;
              &lt;li ng-repeat="meetup in meetups"&gt;
              {{meetup.name}}
          &lt;/ul&gt;
          &lt;form ng-submit="createMeetup()"&gt;
              &lt;input type="text" placeholder="Meetup name" ng-model="meetupName"&gt;&lt;/input&gt;
              &lt;button type="submit"&gt;Add&lt;/button&gt;
          &lt;/form&gt;
      &lt;/div&gt;
      &lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular-resource.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/js/controllers/meetups-controller.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>please help</p>