{"id":19407659,"url":"https://github.com/codedrinker/angular-mini-preview","last_synced_at":"2025-04-24T09:31:42.639Z","repository":{"id":57178757,"uuid":"78028719","full_name":"codedrinker/angular-mini-preview","owner":"codedrinker","description":"An AngularJS directive, you can preview image, link when hover on the element.","archived":false,"fork":false,"pushed_at":"2017-04-08T00:59:41.000Z","size":31,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T18:20:05.438Z","etag":null,"topics":["angular","angular-mini-preview","mini-program","preview"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codedrinker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-04T15:40:54.000Z","updated_at":"2023-03-20T04:55:40.000Z","dependencies_parsed_at":"2022-09-09T17:30:22.441Z","dependency_job_id":null,"html_url":"https://github.com/codedrinker/angular-mini-preview","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fangular-mini-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fangular-mini-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fangular-mini-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fangular-mini-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedrinker","download_url":"https://codeload.github.com/codedrinker/angular-mini-preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250600712,"owners_count":21457015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-mini-preview","mini-program","preview"],"created_at":"2024-11-10T12:03:24.908Z","updated_at":"2025-04-24T09:31:42.403Z","avatar_url":"https://github.com/codedrinker.png","language":"CSS","readme":"![](https://img.shields.io/badge/bower-1.0.8-green.svg) ![](https://img.shields.io/badge/npm-1.0.8-red.svg) ![](https://img.shields.io/github/license/mashape/apistatus.svg)\n\n# angular-mini-preview\nAn AngularJS directive, you can preview image, link when hover on the element.\n\n# Demo\n![Angular Mini Preview Demo](https://codedrinker.github.io/repository/asserts/angular-mini-preview-1.0.7.gif)\n\n## Usage\n\nInstall with Bower(Or NPM):\n\n```bash\nbower install angular-mini-preview\n\nOR\n\nnpm install angular-mini-preview\n```\n\nThen reference the minified script:\n\n```html\n\u003cscript src=\"bower_components/angular-mini-preview/dist/js/angular-mini-preview.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"bower_components/angular-mini-preview/dist/css/angular-mini-preview.min.css\"\u003e\n\nOR\n\n\u003cscript src=\"node_modules/angular-mini-preview/dist/js/angular-mini-preview.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"node_modules/angular-mini-preview/dist/css/angular-mini-preview.min.css\"\u003e\n\n```\n\nSpecify the angular mini preview as a dependency of your application:\n\n```js\nvar app = angular.module('app', ['angular-mini-preview']);\n```\n\nNow just use mini-preview in any html:\n```html\n\u003ca href=\"https://codedrinker.github.com\" mini-preview\u003e\n```\nMore\n```html\n\u003ca href=\"https://codedrinker.github.com\" mini-preview=\"https://codedrinker.github.com\"\u003e\n\u003ca href=\"https://codedrinker.github.com\" mini-preview=\"https://codedrinker.github.com\" lazy-load=\"true\"\u003e\n\u003ca href=\"https://codedrinker.github.com\" mini-preview=\"https://codedrinker.github.com\" lazy-load=\"true\" mini-width=\"300px\"\u003e\n```\n\n# Road Map\n###### 1.0.0 Preview Link.\n###### 1.0.1 Refactor project dependencies.\n###### 1.0.2 Support Angular expression in A tag href.\n###### 1.0.3 Support customize link address. (eg. mini-preview=\"https://codedrinker.github.com\").\n###### 1.0.4 Support customize height and width, and 'lazy-load' attr to generate 'Preview' dialog once hover one the link area.\n###### 1.0.5 Support popup direction, use mini-direction='tr|tl|bl|br' to set the popup dialog position, the default value is 'bl'.\n###### 1.0.6 Support auto direction which can auto adjust the direction depends on the window resizing.\n\n# MIT License\n\nCopyright (c) 2016 Chunlei Wang\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedrinker%2Fangular-mini-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedrinker%2Fangular-mini-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedrinker%2Fangular-mini-preview/lists"}