
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
angular-signature
Advanced tools
HTML5 canvas based smooth signature drawing as angularJS directive
AngularJS directive for the signature pad JavaScript library by szimek.
In contrast to other AngularJS directives for szimek's signature pad, this directive does not apply any styling. The directive only places the canvas and allows you to bind your app to the signature pad by binding the functions in the scope of your controller. This means you can call them from your own (custom) buttons.
An online demo of the directive can be found here.
Install this module using bower
bower install angular-signature --save
or install this module using npm
npm install angular-signature --save
Add the module to your app
angular.module('app', [
'signature',
]);
<signature-pad accept="accept" clear="clear" height="220" width="568" disabled="false"></signature-pad>
<button ng-click="clear()">Clear signature</button>
<button ng-click="signature = accept()">Sign</button>
This plugin works well in a Angular UI Bootstrap Modal.
angular.module('app').controller('SignModalCtrl', [
'$scope', '$modalInstance'
function ($scope, $modalInstance) {
$scope.done = function () {
var signature = $scope.accept();
if (signature.isEmpty) {
$modalInstance.dismiss();
} else {
$modalInstance.close(signature.dataUrl);
}
};
}
]);
<div class="modal-header">
<h3 class="modal-title">Sign</h3>
</div>
<div class="modal-body">
<signature-pad accept="accept" clear="clear"></signature-pad>
</div>
<div class="modal-footer">
<button class="btn btn-default pull-left" ng-click="clear()">Clear signature</button>
<button class="btn btn-default" ng-click="$dismiss()">Cancel</button>
<button class="btn btn-primary" ng-click="done()">Sign</button>
</div>
FAQs
HTML5 canvas based smooth signature drawing as angularJS directive
The npm package angular-signature receives a total of 699 weekly downloads. As such, angular-signature popularity was classified as not popular.
We found that angular-signature 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 for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.