
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Simple, flexible and beautiful modal dialogs in AngularJS.
bower/npm install v-modal
. If not, download files from the github repov-modal.css
and v-modal.js
in your index.html fileangular.module('myApp', [ 'vModal' ])
app.js
angular.module('myApp', ['vModal'])
.factory('myModal', function (vModal) {
return vModal({
controller: 'MyModalController',
controllerAs: 'myModalCtrl',
templateUrl: 'my-modal.html'
});
})
.controller('MyModalController', function (myModal) {
this.close = myModal.deactivate;
})
.controller('AppController', function (myModal) {
this.show = myModal.activate;
});
index.html
<div ng-app="myApp" ng-controller="AppController as appCtrl">
<button ng-click="appCtrl.show()">Show</button>
</div>
my-modal.html
<v-modal class="vModal--default" onclose="myModalCtrl.close()">
<v-dialog heading="My modal" small middle>
<v-close label="Close"></v-close>
<h1>My modal</h1>
<button ng-click="myModalCtrl.close()">OK</button>
</v-dialog>
</v-modal>
small
medium
large
fit
<v-dialog large></v-dialog>
center
(default)middle
<v-dialog middle></v-dialog>
To change the default container selector, use modalConfig
provider in your app config, like so:
angular
.module('myApp', ['vAccordion'])
.config(function (modalConfig) {
modalConfig.containerSelector = 'body';
});
If you are using SASS, you can import vModal.scss file and override the following variables:
$v-modal-default-theme: true !default;
$v-modal-use-flexbox: true !default;
$v-modal-spacing: 20px !default;
$v-modal-zindex: 1000 !default;
$v-modal-backdrop: rgba(0,0,0, 0.5) !default;
$v-dialog-background: white !default;
$v-dialog-border-radius: 2px !default;
$v-dialog-sm-width: 340px !default;
$v-dialog-md-width: 560px !default;
$v-dialog-lg-width: 780px !default;
$v-close-color: #2196F3 !default;
$v-close-hover-color: #F44336 !default;
$v-close-hover-duration: 0.25s !default;
$v-modal-fade-animation-duration: 0.25s !default;
$v-dialog-enter-animation-duration: 0.5s !default;
By default, vModal manages keyboard focus and adds some common ARIA attributes to improve accessibility of your dialogs.
vModal
service is based angular-modal by Brian Ford.
FAQs
vModal - Simple, flexible and beautiful modal dialogs in AngularJS
The npm package v-modal receives a total of 44 weekly downloads. As such, v-modal popularity was classified as not popular.
We found that v-modal 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.