Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenop/feedback-directive


https://github.com/chenop/feedback-directive

angularjs

Last synced: 27 days ago
JSON representation

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]: