mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-12 18:32:22 +01:00
* fix(articles): Article controllers name conflicts Fixes the naming conflicts for the Articles controllers. Due to how Angular injects the controllers into the StateProvider, naming conflicts were caused between the Articles public & admin module controllers. To resolve the issue the referenced controllers in the Articles admin route configurations must be unique, and match up with the Admin controllers. * Client-side tests failing Fixed the client-side tests that were failing due to the naming conflicts.
16 lines
346 B
JavaScript
16 lines
346 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('articles.admin')
|
|
.controller('ArticlesAdminListController', ArticlesAdminListController);
|
|
|
|
ArticlesAdminListController.$inject = ['ArticlesService'];
|
|
|
|
function ArticlesAdminListController(ArticlesService) {
|
|
var vm = this;
|
|
|
|
vm.articles = ArticlesService.query();
|
|
}
|
|
}());
|