Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Release v0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Nov 6, 2015
1 parent d7e0c87 commit add69cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "angular-promise-buttons",
"description": "Fabulous helper to help you with your daily form coding.",
"version": "0.1.8",
"version": "0.1.9",
"authors": [
"Johannes Millan <johannes.millan@gmail.com>"
],
Expand Down
15 changes: 13 additions & 2 deletions dist/angular-promise-buttons.js
Expand Up @@ -20,12 +20,14 @@ angular.module('angularPromiseButtons')
transclude: true,
replace: true,
scope: {
promiseBtn: '='
promiseBtn: '=',
promiseBtnOptions: '=?'
},
templateUrl: 'promise-btn-d.html',
link: function (scope, el)
{
var cfg = angularPromiseButtons.config;
var providerCfg = angularPromiseButtons.config;
var cfg = providerCfg;

var loading = function ()
{
Expand Down Expand Up @@ -66,7 +68,16 @@ angular.module('angularPromiseButtons')
});
}

// watch options
scope.$watch('promiseBtnOptions', function (newVal)
{
if (angular.isObject(newVal)) {
cfg = angular.extend({}, providerCfg, newVal);
}
}, true);


// watch promise to resolve or fail
scope.$watch(function ()
{
return scope.promiseBtn;
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-promise-buttons.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "angular-promise-buttons",
"version": "0.1.8",
"version": "0.1.9",
"repository": {
"type": "git",
"url": "https://github.com/johannesjo/angular-promise-buttons.git"
Expand Down

0 comments on commit add69cc

Please sign in to comment.