https://github.com/codedrinker/angular-mini-preview
An AngularJS directive, you can preview image, link when hover on the element.
https://github.com/codedrinker/angular-mini-preview
angular angular-mini-preview mini-program preview
Last synced: 4 days ago
JSON representation
An AngularJS directive, you can preview image, link when hover on the element.
- Host: GitHub
- URL: https://github.com/codedrinker/angular-mini-preview
- Owner: codedrinker
- License: mit
- Created: 2017-01-04T15:40:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T00:59:41.000Z (about 8 years ago)
- Last Synced: 2025-04-11T18:20:05.438Z (17 days ago)
- Topics: angular, angular-mini-preview, mini-program, preview
- Language: CSS
- Homepage:
- Size: 30.3 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
  
# angular-mini-preview
An AngularJS directive, you can preview image, link when hover on the element.# Demo
## Usage
Install with Bower(Or NPM):
```bash
bower install angular-mini-previewOR
npm install angular-mini-preview
```Then reference the minified script:
```html
OR
```
Specify the angular mini preview as a dependency of your application:
```js
var app = angular.module('app', ['angular-mini-preview']);
```Now just use mini-preview in any html:
```html
```
More
```html
```# Road Map
###### 1.0.0 Preview Link.
###### 1.0.1 Refactor project dependencies.
###### 1.0.2 Support Angular expression in A tag href.
###### 1.0.3 Support customize link address. (eg. mini-preview="https://codedrinker.github.com").
###### 1.0.4 Support customize height and width, and 'lazy-load' attr to generate 'Preview' dialog once hover one the link area.
###### 1.0.5 Support popup direction, use mini-direction='tr|tl|bl|br' to set the popup dialog position, the default value is 'bl'.
###### 1.0.6 Support auto direction which can auto adjust the direction depends on the window resizing.# MIT License
Copyright (c) 2016 Chunlei Wang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.