Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chenop/feedback-directive
https://github.com/chenop/feedback-directive
angularjs
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chenop/feedback-directive
- Owner: chenop
- Created: 2016-10-10T13:17:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T00:12:19.000Z (about 8 years ago)
- Last Synced: 2024-11-29T13:42:22.474Z (about 1 month ago)
- Topics: angularjs
- Language: JavaScript
- Size: 937 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```shell
npm install feedback-directive
```#### Add 'feedback.module' to modules list
```javascript
var app = angular.module('easywork', ['feedback.module']);
```#### Include directive in your HTML
```html```
#### Implement callback in your controller
```javascript
$scope.onFeedbackSent = function(data) {
console.log("feedback from " + data.email ": " + feedback.content);
}
```### License
MIT[demo page]: