Files
meanTorrent/modules/articles/client/controllers/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

19 lines
389 B
JavaScript

(function () {
'use strict';
angular
.module('articles')
.controller('ArticlesController', ArticlesController);
ArticlesController.$inject = ['$scope', 'articleResolve', 'Authentication'];
function ArticlesController($scope, article, Authentication) {
var vm = this;
vm.article = article;
vm.authentication = Authentication;
vm.error = null;
}
}());