Files
meanTorrent/modules/articles/client/controllers/admin/list-articles.client.controller.js
Michael Leanos 89075cb8d3 feat(articles): Article Admin feature (#807)
This feature introduces a breaking change, that restricts the User's that
can create/edit/delete Articles to only those that have the `admin` Role.

Fixed ESLint issues.

Resolved merge conflicts, and moved new client Article Service
`createOrUpdate` functionality to new Admin feature controller.

Removed edit functionality from client-side Article controller.
2016-07-25 17:34:06 -07:00

16 lines
320 B
JavaScript

(function () {
'use strict';
angular
.module('articles')
.controller('ArticlesListController', ArticlesListController);
ArticlesListController.$inject = ['ArticlesService'];
function ArticlesListController(ArticlesService) {
var vm = this;
vm.articles = ArticlesService.query();
}
}());