https://github.com/codeofnode/angular-fa
A simple angular directive to put fixed alert on top of page.
https://github.com/codeofnode/angular-fa
Last synced: 6 months ago
JSON representation
A simple angular directive to put fixed alert on top of page.
- Host: GitHub
- URL: https://github.com/codeofnode/angular-fa
- Owner: codeofnode
- License: mit
- Created: 2015-10-06T23:04:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-06T23:44:42.000Z (over 10 years ago)
- Last Synced: 2025-07-05T16:19:20.129Z (7 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angular-fa
#### A simple angular directive to put fixed alert on top of page.
## Install
npm install --save angular-fa
## Usage
First make your app dependent to `ngFixedAlert`
```javascript
var app = angular.module('app', [ 'ngFixedAlert' ]);
```
Then simply add this line inside body of page
```html
```
### Options as attributes of the element with which `r-fa` is linked
* `closable` : if its value is false, the alert can not be disappear. For any other value or no value, alert will displayed until user clears that or timeout happens
* `autoHide` : Only means if closable != `false`. `autoHide` can be number of milliseconds or can be false.
If its value is false, then alert will not disappear until user click on cross link. If its value is numeric then alert will be visible for specified number of miliseconds. By default its value is false,
## Licence
MIT