Skip to content

chenop/feedback-directive

Repository files navigation

Feedback Directive

This is a simple AngularJS feedback directive to help you easily add feedback / contact capability for application.

Demo

Checkout the demo page.

Usage

Install via NPM

npm install feedback-directive

Add 'feedback.module' to modules list

var app = angular.module('easywork', ['feedback.module']);

Include directive in your HTML

<feedback callback="onFeedbackSent"></feedback>

Implement callback in your controller

$scope.onFeedbackSent = function(data) {
    console.log("feedback from " + data.email ": " + feedback.content);
}

License

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published