angular-confirm1
Advanced tools
Weekly downloads
Changelog
angular-confirm v1.1.0
Readme
alerts, confirms and dialogs in one.
v1.1.0
Angular-confirm targets to make it really easy to use confirm dialogs with angular.
With 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.
A re-write of the jquery-confirm v3 plugin with all features.
View detailed features here Documentation & Examples
Download the latest release here and use the files within the dist
directory
##Basic usage
The snippet below shows the most commonly used properties, there are more to find in the docs.
angular.module('myApp', ['cp.ngConfirm'])
.controller('myController', function($scope, $ngConfirm){
$scope.hey = 'Hello there!';
$ngConfirm({
title: 'What is up?',
content: 'Here goes a little content, <strong>{{hey}}</strong>',
contentUrl: 'template.html', // if contentUrl is provided, 'content' is ignored.
scope: $scope,
buttons: {
// long hand button definition
ok: {
text: "ok!",
btnClass: 'btn-primary',
keys: ['enter'], // will trigger when enter is pressed
action: function(scope){
$ngConfirm('the user clicked ok');
}
},
// short hand button definition
close: function(scope){
$ngConfirm('the user clicked close');
}
},
});
});
See Detailed Docs + Example here.
Please post issues and feature request here Github issues
(coming in 1.11.0)
(new in 1.1.0)
(new in 1.0.1)
Copyright (C) 2016 angular-confirm
Licensed under the MIT license.
FAQs
A angular plugin that provides great set of features like, Auto-close, Ajax-loading, background-dismiss, themes and more.
The npm package angular-confirm1 receives a total of 521 weekly downloads. As such, angular-confirm1 popularity was classified as not popular.
We found that angular-confirm1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.