angular2-promise-buttons
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -0,1 +1,11 @@ | ||
<a name="1.0.2"></a> | ||
## [1.0.2](https://github.com/johannesjo/angular2-promise-buttons/compare/v1.0.1...v1.0.2) (2017-05-09) | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/johannesjo/angular2-promise-buttons/compare/v1.0.0...v1.0.1) (2017-05-09) | ||
<a name="1.0.0"></a> | ||
@@ -2,0 +12,0 @@ # [1.0.0](https://github.com/johannesjo/angular2-promise-buttons/compare/v0.1.5...v1.0.0) (2017-05-09) |
{ | ||
"name": "angular2-promise-buttons", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/johannesjo/angular2-promise-buttons.git" | ||
}, | ||
"scripts": { | ||
"total-patch-publish": "run-s test demo.deploy build && npm version patch && npm publish", | ||
"demo.serve": "ng serve", | ||
@@ -43,2 +48,3 @@ "demo.gh-pages": "gh-pages -d demo/dist", | ||
"@angular/core": "^4.0.0", | ||
"@angular/forms": "^4.0.0", | ||
"@angular/platform-browser": "^4.0.0", | ||
@@ -45,0 +51,0 @@ "@angular/platform-browser-dynamic": "^4.0.0", |
@@ -42,3 +42,14 @@ [![npm version](https://badge.fury.io/js/angular2-promise-buttons.svg)](https://badge.fury.io/js/angular2-promise-buttons) | ||
``` | ||
```typescript | ||
export class SomeComponent { | ||
// some example async action, but this works with any promise | ||
someAction(){ | ||
this.promiseSetBySomeAction = new Promise((resolve, reject) => { | ||
setTimeout(resolve, 2000); | ||
}); | ||
} | ||
} | ||
``` | ||
## styling the button | ||
@@ -45,0 +56,0 @@ To give you maximum flexibility there are no base styles coming with the directive, but it is easy to fix that! There are lots of free css-spinners out there. Just find one of your liking and add the css to your global stylesheet. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
27576
88
0
0
39