Angular - Module

Module with controller, filter, and directive.

by ncapito

HTML

<script src="https://code.angularjs.org/1.5.8/angular.min.js"></script>
<script src="https://code.angularjs.org/1.5.8/angular-resource.min.js"></script>
<script src="https://code.angularjs.org/1.5.8/angular-route.min.js"></script>
<body ng-app="crsportal" ng-controller="myCtrl">
    <input ng-model="msg" />
    <p >
        {{msg  }}
    </p>
</body>

JavaScript

var mainApp = angular.module('crsportal', [
  'crs.authentication',
  'crs.config',
  'crs.routes',
  'crs.profiles.controllers',
  'profile.services',
  'route.controller'
])

angular.module('crs.authentication', []);

angular
 .module('crs.config', []);

angular
 .module('crs.routes', ['ngRoute']);

angular
  .module('crs.profiles.controllers', []);

angular
  .module('profile.services', []);

angular
  .module('route.controller', []).controller('myCtrl', myCtrl)



function myCtrl($scope){
  $scope.msg = 'Hello';
}