{"id":14973422,"url":"https://github.com/craftpip/angular-confirm","last_synced_at":"2025-05-06T23:45:08.168Z","repository":{"id":57148339,"uuid":"73159734","full_name":"craftpip/angular-confirm","owner":"craftpip","description":"A multipurpose plugin for alert, confirm \u0026 dialog for angular1","archived":false,"fork":false,"pushed_at":"2019-09-17T15:41:23.000Z","size":1181,"stargazers_count":115,"open_issues_count":25,"forks_count":20,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-10T10:18:38.064Z","etag":null,"topics":["alert","angular","angular-confirm","angular-modal","angular-model","angular-module","angular1","dialog","javascript-confirm"],"latest_commit_sha":null,"homepage":"http://craftpip.github.io/angular-confirm/","language":"JavaScript","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/craftpip.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":"2016-11-08T07:17:49.000Z","updated_at":"2022-08-20T11:10:43.000Z","dependencies_parsed_at":"2022-08-30T14:51:22.083Z","dependency_job_id":null,"html_url":"https://github.com/craftpip/angular-confirm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fangular-confirm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fangular-confirm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fangular-confirm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fangular-confirm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craftpip","download_url":"https://codeload.github.com/craftpip/angular-confirm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788404,"owners_count":21804280,"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":["alert","angular","angular-confirm","angular-modal","angular-model","angular-module","angular1","dialog","javascript-confirm"],"created_at":"2024-09-24T13:48:41.797Z","updated_at":"2025-05-06T23:45:08.142Z","avatar_url":"https://github.com/craftpip.png","language":"JavaScript","readme":"### ![jquery-confirm](https://raw.githubusercontent.com/craftpip/angular-confirm/master/angular-confirm.png \"jquery-confirm\")\n*alerts, confirms and dialogs in* ***one.***\n\nv1.1.0\n\nAngular-confirm targets to make it really easy to use confirm dialogs with angular.  \nWith angular-confirm you can harness the angular two-way data binding to update the content as well as make changes to the model in runtime. \n\nA re-write of the jquery-confirm v3 plugin with all features.\n\n* Define multiple buttons\n* Trigger buttons on key up events\n* Beautiful themes and animations\n* All modal properties are two-way binded.  \n* Do things the angular way\n\nView detailed features here [Documentation \u0026 Examples](http://craftpip.github.io/angular-confirm)\n\n## Installation\n\nDownload the latest release [here](https://github.com/craftpip/jquery-confirm/archive/master.zip) and use the files within the `dist` directory\n\nvia Bower:  \n`$ bower install angular-confirm1`\n\nvia NPM:  \n`$ npm install angular-confirm1`\n\n##Basic usage\n\nThe snippet below shows the most commonly used properties, there are more to find in the docs.\n```js\nangular.module('myApp', ['cp.ngConfirm'])\n.controller('myController', function($scope, $ngConfirm){\n    $scope.hey = 'Hello there!';\n    $ngConfirm({\n        title: 'What is up?',\n        content: 'Here goes a little content, \u003cstrong\u003e{{hey}}\u003c/strong\u003e',\n        contentUrl: 'template.html', // if contentUrl is provided, 'content' is ignored.\n        scope: $scope,\n        buttons: {   \n            // long hand button definition\n            ok: { \n                text: \"ok!\",\n                btnClass: 'btn-primary',\n                keys: ['enter'], // will trigger when enter is pressed\n                action: function(scope){\n                     $ngConfirm('the user clicked ok');\n                }\n            },\n            // short hand button definition\n            close: function(scope){\n                $ngConfirm('the user clicked close');\n            }\n        },\n    });\n});\n```\n\n## Demo and Documentation\n\nSee Detailed Docs + Example [here](http://craftpip.github.io/angular-confirm).\n\n## Issues\n\nPlease post issues and feature request here [Github issues](https://github.com/craftpip/angular-confirm/issues)\n\n## Version changes\n\n(coming in 1.11.0)\n* remove jquery as dependency\n\n(new in 1.1.0)\n* Major performance fixes\n* Fix memory leaks\n* Removed ngAnimate and ngSanitize as dependencies\n* added set methods to modal\n* watchInterval property removed, content watch is now done with $digest\n* button functions added\n* theme fixes\n* onScopeReady callback added\n\n(new in 1.0.1)\n* Added project to bower\n\n\n## Copyright and license\n\nCopyright (C) 2016 angular-confirm\n\nLicensed under [the MIT license](LICENSE).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftpip%2Fangular-confirm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraftpip%2Fangular-confirm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftpip%2Fangular-confirm/lists"}