title: Webpack and angularJs
body: <p>I'm trying to run simple app with angularjs and webpack , here is my code :<br>
  <strong>index.html</strong>  </p>
  
  <pre><code>&lt;html ng-app="myApp"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
      &lt;/head&gt;
      &lt;body ng-controller="mainCtrl"&gt;
  
  Full Name: {{firstName + " " + lastName}}
  
          &lt;script type="text/javascript" src="bundle.js" charset="utf-8"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;   
  </code></pre>
  
  <p><strong>app.js</strong>  </p>
  
  <pre><code>var app = angular.module('myApp', []);
  
  function mainCtrl($scope) {
      $scope.firstName="John",
      $scope.lastName="Doe"
  }
  </code></pre>
  
  <p><strong>Webpackconfig.js</strong>   </p>
  
  <pre><code>module.exports = {
    entry: './main.js',
    output: {
      filename: './bundle.js'       
    }
  };  
  </code></pre>
  
  <p><strong>main.js</strong>  </p>
  
  <pre><code>var jquery = require("//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js");
  var angular = require("//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular.min.js");
  
  
  var app = require("./app.js");  
  </code></pre>
  
  <p><strong>bundle.js</strong>  </p>
  
  <pre><code>?? I don't know what i sholud write here !!  
  </code></pre>
  
  <p>also i've seen this : <a href="https://github.com/jeffling/angular-webpack-example">https://github.com/jeffling/angular-webpack-example</a><br>
  the question is how can i run this correctly ?</p>