Files
meanTorrent/modules/articles/client/controllers/admin/list-articles.client.controller.js
Michael Leanos c96f8c0b56 fix(articles): Article controllers name conflicts (#1428)
* 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.
2016-08-26 13:27:43 +03:00

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();
}
}());