there is such a module
(function () { 'use strict'; angular.module('lss-angular-country',[]) .constant('COUNTRIES',[ {code:'AF',name:'Afghanistan'},{code:'AL',name:'Albania'},{code:'DZ',name:'Algeria'}..... there further array continuation. This module is included in the config of the app.js file and the file in index.html
This is app.js
'use strict'; angular .module('app', [ 'config', 'ngResource', 'ngSanitize', 'ngMaterial', 'angular.filter', 'ui.router', 'ui.calendar', 'lss-angular-country', Q: How do I get to the COUNTRIES from the controller? on the similarity:
(function () { 'use strict'; /* jshint latedef:nofunc */ angular.module('app') .controller('agentsRegisterCtrl', function ($scope) { console.log(COUNTRIES); // <---------------------