Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-onload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-onload - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

.babelrc

4

bower.json
{
"name": "ng-onload",
"version": "0.7.0",
"version": "0.8.0",
"description": "ngOnload directive for allowing callbacks from Angulars Scope to be executed on elements onload event.",

@@ -12,3 +12,3 @@ "authors": [

},
"main": "release/ng-onload.js",
"main": "release/ng-onload.min.js",
"moduleType": [

@@ -15,0 +15,0 @@ "angular",

{
"name": "ng-onload",
"version": "0.7.0",
"version": "0.8.0",
"description": "ngOnload directive for allowing callbacks from Angulars Scope to be executed on elements onload event.",
"main": "gulpfile.js",
"main": "release/ng-onload.min.js",
"directories": {

@@ -10,3 +10,6 @@ "test": "test"

"scripts": {
"test": "echo \"Error: no test specified\" && exit 0"
"test": "echo \"Error: no test specified\" && exit 0",
"build": "npm run babel && npm run uglify",
"babel": "babel lib --out-dir release ",
"uglify": "uglifyjs --compress --mangle -- release/ng-onload.js > release/ng-onload.min.js"
},

@@ -31,17 +34,6 @@ "repository": {

"devDependencies": {
"bower": "^1.3.12",
"chai": "^2.0.0",
"gulp": "^3.8.11",
"gulp-6to5": "^3.0.0",
"gulp-jshint": "^2.0.4",
"gulp-karma": "0.0.4",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.1.0",
"jasmine": "^2.2.1",
"jasmine-core": "^2.2.0",
"jasmine-jquery": "^2.0.6",
"jshint": "^2.9.4",
"jshint-stylish": "^1.0.0",
"run-sequence": "^1.0.2"
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.6.0",
"uglify-js": "^3.0.27"
}
}
# ng-onload
Binds Angular.js scope function to given HTML elements onload event; for example, iframe.

@@ -67,2 +68,12 @@

## Developing
Prerequisites:
* Have yarn installed globally (`npm i -g yarn`)
```bash
$ yarn install # install dependencies
$ npm run build # builds the release and makes sure everything is good
```
## Other

@@ -69,0 +80,0 @@ You can find and example .html and how it's used inside the /test directory. There currently are no specific unit tests available but feel free to contribute.

@@ -24,3 +24,4 @@ "use strict";

*/
var elementOnloadDirective = function () {
var elementOnloadDirective = function elementOnloadDirective() {
return {

@@ -31,3 +32,3 @@ restrict: "A",

},
link: function (scope, element, attrs) {
link: function link(scope, element, attrs) {
// hooking up the onload event - calling the callback on load event

@@ -34,0 +35,0 @@ element.one("load", function (_) {

@@ -1,1 +0,1 @@

"use strict";!function(){var n=function(){return{restrict:"A",scope:{callback:"&ngOnload"},link:function(n,t,o){t.one("load",function(o){var c=t.length>0&&t[0].contentWindow?t[0].contentWindow.location:void 0;n.callback({contentLocation:c})})}}};n.$inject=[],n.directiveName="ngOnload",angular.module("ngOnload",[]).directive(n.directiveName,n)}();
"use strict";!function(){var n=function(){return{restrict:"A",scope:{callback:"&ngOnload"},link:function(n,t,o){t.one("load",function(o){var c=t.length>0&&t[0].contentWindow?t[0].contentWindow.location:void 0;n.callback({contentLocation:c})})}}};n.$inject=[],n.directiveName="ngOnload",angular.module("ngOnload",[]).directive(n.directiveName,n)}();

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc