
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ngModal is very simple Angular.js modal dialog directive.

You can also install the package using Bower.
bower install ngModal
Or add it to your bower.json file:
dependencies: {
"ngModal": "~1.2.0"
}
To use the library, add the JS file and CSS file, and then include the module in your app:
app = angular.module("myApp", ["ngModal"])
The directive itself is called modal-dialog. The only required attribute is show, which should reference a boolean variable that controls whether or not the dialog is shown. Inside, you can put whatever HTML content you'd like.
<modal-dialog show='dialogShown' dialog-title='My Dialog'>
<p>Dialog content goes in here</p>
</modal-dialog>
There are a few options that be configured inline with attributes.
| Option | Default | Description |
|---|---|---|
| dialog-title | null | Title placed in the header of the modal dialog. |
| width | 50% | Width of the dialog. Can be specified in px or %. |
| height | 50% | Height of the dialog. Can be specified in px or %. |
| on-close | null | Call a function when the dialog is closed. Ex: on-close='foo()' |
Example:
<modal-dialog show='dialogShown' dialog-title='My Dialog' height='400px' width='75%'>
<p>Dialog content goes in here</p>
</modal-dialog>
You can also pre-configure some options during your app's configuration phase.
app.config(function(ngModalDefaultsProvider) {
ngModalDefaultsProvider.set('option', 'value');
// Or with a hash
ngModalDefaultsProvider.set({option: 'value', option2: 'value2'});
})
| Option | Default | Description |
|---|---|---|
| closeButtonHtml | 'X' | By default, the close button is just an X character. But you can set it to any HTML. For example, if you're using font-awesome, you could set it to <i class='fa fa-times'></i> |
So far, it has only been tested in Chrome. There is some CSS that is not compatible with with older browsers, including IE9.
Contributions are welcome. Whenever possible, please include test coverage with your contribution.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)To get the project running, you'll need NPM and Bower. Run npm install and bower install to install all dependencies. Then run grunt in the project directory to watch and compile changes. And you can run karma start to watch for changes and auto-execute unit tests.
FAQs
ngModal is very simple [Angular.js](http://angularjs.org/) modal dialog directive.
We found that ngmodal 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.