You are on page 1of 1

<div class="mdl-card__actions mdl-card--border" ng-controller="CommentController

as c">
<ul class="img-comment-list" id="commentload">
</ul>
<form>
<div class="comment_it commentupdate">
<div class="up_img">
<img src="" width="35" height="35" />
</div>
<div class="comments-text-post-area">
<input type="hidden" ng-model="c.Idcomment" ng-value="'{{p.id}}'"
>
<textarea class="add-y-comment" ng-model="c.comment" placeholder="
Comentar"></textarea>
</div>
<div class="comment-post-wall">
<div class="cancel-comment">
<button type="button" name="button" class="mdl-button mdl-js-b
utton mdl-button--raised" id="" rel="">CANCELAR</button>
</div>
<div class="send-comment">
<button type="submit" name="button" class="mdl-button mdl-js
-button mdl-button--raised" ng-click="c.addComment()">ENVIAR</button>
</div>
</div>
</div>
</form>
</div>

(function() {
'use strict';
angular
.module('apiFromApp')
.controller('CommentController', CommentController);
CommentController.$inject = ['$http'];
/* @ngInject */
function CommentController($http) {
var self = this;
//sendComment();
self.addComment = function() {
console.log(self);
}
}
})();

You might also like