<script>
/* CONTROLLER BEST PRACTICE TEMPLATE */
(function() {
'use strict';
angular
.module('module')
.controller('Controller', Controller);
Controller.$inject = ['dependencies'];
/* @ngInject */
function Controller(dependencies) {
var vm = this;
vm.title = 'Controller';
activate();
////////////////
function activate() {
}
}
})();
</script>
<script>
/* DIRECTIVE BEST PRACTICE TEMPLATE */
(function() {
'use strict';
angular
.module('module')
.directive('directive', directive);
directive.$inject = ['dependencies'];
/* @ngInject */
function directive (dependencies) {
// Usage:
//
// Creates:
//
var directive = {
bindToController: true,
controller: Controller,
controllerAs: 'vm',
link: link,
restrict: 'A',
scope: {
}
};
return directive;
function link(scope, element, attrs) {
}
}
/* @ngInject */
function Controller () {
}
})();
</script>
<script>
/* FACTORY BEST PRACTICE TEMPLATE */
(function() {
'use strict';
angular
.module('module')
.factory('factory', factory);
factory.$inject = ['dependencies'];
/* @ngInject */
function factory(dependencies) {
var service = {
func: func
};
return service;
////////////////
function func() {
}
}
})();
</script>
<script>
/* FILTER BEST PRACTICE TEMPLATE */
(function() {
'use strict';
angular
.module('module')
.filter('filter', filter);
function filter() {
return filterFilter;
////////////////
function filterFilter(params) {
return params;
};
}
})();
</script>
<script>
/* SERVICE BEST PRACTICE TEMPLATE */
(function() {
'use strict';
angular
.module('module')
.service('Service', Service);
Service.$inject = ['dependencies'];
/* @ngInject */
function Service(dependencies) {
this.func = func;
////////////////
function func() {
}
}
})();
</script>
By default, trying to access RabbitMQ Management UI (http://localhost:15672/) from a remote machine is not allowed. You must turn this on by setting the setting an environment variable and then creating a rabbitmq.config file before installing rabbitmq on Windows.
Here are the steps before you install.
Clean Install on Windows Server 2012:
- Set System Environment Variables
- Go to System > Advanced System Settings > Advanced Tab > Environment Variables
- Under System variables > New...
- variable name : RABBITMQ_BASE
variable value : c:\rabbitmq - Click OK
- Click OK at Environment Variables screen.
- Create a new file called rabbitmq.config in c:\rabbitmq
- Edit rabbitmq.config and paste the following into it:
[{rabbit, [{loopback_users, []}]}].
- Install Erlang
- Go to http://www.erlang.org/download.html
- Download: OTP 17.5 Windows 64-bit Binary File (91.1 MB)
- Install RabbitMQ
- Go to https://www.rabbitmq.com/download.html
- Download: RabbitMQ 3.5.3 Windows
If you already installed rabbitmq, you will need to uninstall rabbitmq service and then do the above 1 through 3 steps.