JavaScript: Using AngularJS
<p>Hello i am new to java script. my group members had written some code for creating a website for a project and i wanted to run it on my laptop. We are using AngularJS for client side. But i am getting the following error:</p>

<pre><code>ReferenceError: angular is not defined
at Object.&lt;anonymous&gt; (C:\Users\Usman\Desktop\temp_course_rating\temp_course
_rating\public\app.js:2:11)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
</code></pre>

<p>I have pasted the code from that particular file. I would really appreciate any help as i am way behind in my group:</p>

<pre><code>var ratemycourse = {};
var App = angular.module('ratemycourse', ['ngResource']);

App.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/', {
   templateUrl : '/templates/home.html',
   controller : HomeCtrl
 });

 $routeProvider.when('/register', {
  templateUrl : '/templates/register.html',
  controller : RegisterCtrl
  });

  $routeProvider.when('/login', {
   templateUrl : '/templates/login.html',
   controller : LoginCtrl
  });

 $routeProvider.when('/logout', {
   templateUrl : '/templates/logout.html',
   controller : LogoutCtrl
 });

$routeProvider.when('/mcgill', {
templateUrl : '/templates/mcgill.html',
//controller : McGillCtrl
 });

$routeProvider.when('/concordia', {
   templateUrl : '/templates/concordia.html',
   //controller : ConcordiaCtrl
  });

$routeProvider.when('/udem', {
   templateUrl : '/templates/udem.html',
//controller : UdemCtrl
 });
 $routeProvider.otherwise({
  redirectTo : '/'
 });
 }]);
</code></pre>

<p>Also following is the code file which calls angular.js code:</p>

<pre><code>&lt;!DOCTYPE html&gt;
    &lt;html lang="en" ng-app="ratemycourse"&gt;
      &lt;head&gt;
    &lt;title&gt;Rate My Courses&lt;/title&gt;
    &lt;link rel="stylesheet"          href="//cdnjs.cloudflare.com/ajax/libs/foundation/3.2.2/stylesheets/foundation.min.css" /&gt;
    &lt;link rel="stylesheet" href="index.css" /&gt;
    {{{block "stylesheets"}}}
    &lt;script src="http://www.parsecdn.com/js/parse-1.2.0.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    Parse.initialize("mWF6nv6fLZx5l0FOYW8SSxfE07fcA4kMHPfl2UzR",       "m2N5pguJAwmEa6pEK1JwQ3nYqCg17K3PXIN3yCKK");
    &lt;/script&gt;
  &lt;/head&gt;

  &lt;body ng-controller="MainCtrl"&gt;
    &lt;nav class="top-bar" ng-controller="HeaderCtrl"&gt;
      &lt;ul&gt;

        &lt;li class="toggle-topbar"&gt;&lt;a href="/"&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
       &lt;section&gt;
         &lt;ul class="left"&gt;

          &lt;li&gt;&lt;a href="#mcgill"&gt;McGill&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#concordia"&gt;Concordia&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#udem"&gt;UDEM&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
         {{email}}
         &lt;ul class="right"&gt;
          &lt;li data-ng-hide="isLoggedIn"&gt;&lt;a href="#login"&gt;Login&lt;/a&gt;&lt;/li&gt;
           &lt;li data-ng-hide="isLoggedIn"&gt;&lt;a href="#register"&gt;Register&lt;/a&gt;&lt;/li&gt;
          &lt;li data-ng-show="isLoggedIn"&gt;&lt;a href="#logout"&gt;
            {{email}}&lt;/a&gt;&lt;/li&gt;
          &lt;li data-ng-show="isLoggedIn"&gt;&lt;a href="#logout"&gt;Logout&lt;/a&gt;&lt;/li&gt;

        &lt;/ul&gt;
      &lt;/section&gt;
    &lt;/nav&gt;

    {{{body}}}

    &lt;script type="text/javascript"   src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"  src="C:\Users\Usman\Desktop\temp_course_rating\temp_course_rating\public\libs\angular.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"  src="C:\Users\Usman\Desktop\temp_course_rating\temp_course_rating\public\libs\angular-    resource.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="/app.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/controller.js"&gt;&lt;/script&gt;

    {{{block "scripts"}}}
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
