Skip to content

Commit 40329fd

Browse files
committed
update docs
1 parent 9d8b1b3 commit 40329fd

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

README.md

+19-26
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,29 @@ An angular wrapper for ZeroClipboard
44

55
## Install
66

7-
```
8-
bower install angular-zeroclipboard
7+
```sh
8+
$ bower install angular-zeroclipboard
99
```
1010

11-
or, you can download 'angular-zeroclipboard.js' form 'src' manualy
11+
or, you can download 'angular-zeroclipboard.js' form 'src' dir manualy.
1212

13-
## Setup
13+
## Sample
1414

15-
#### sample
15+
### config
1616

1717
```js
18-
angular.module('demo', ['angular.zeroclipboard']).
18+
angular.module('demo', ['zeroclipboard']).
1919
config(['uiZeroclipConfigProvider', function(uiZeroclipConfigProvider) {
2020

2121
// config ZeroClipboard
2222
uiZeroclipConfigProvider.setZcConf({
23-
swfPath: '../bower_components/zeroclipboard/ZeroClipboard.swf'
23+
swfPath: '../bower_components/zeroclipboard/dist/ZeroClipboard.swf'
2424
});
2525

26-
}]);
26+
}])
2727
```
2828

29-
30-
## Config
31-
32-
Configuration passed into `ZeroClipboard.config`
33-
34-
* `uiZeroclipConfigProvider.setZcConf({
35-
moviePath: '../path/to/ZeroClipboard.swf'
36-
* })`
37-
38-
The params is an object. and just same as [ZeroClipboard official config](https://github.com/zeroclipboard/zeroclipboard/blob/1.x-master/docs/instructions.md)
39-
40-
## Usage
29+
### usage
4130

4231
Example using a two-way model binding
4332

@@ -56,14 +45,18 @@ Example using interpolated text:
5645
<span ng-show="copied">The sentence "This was your text: {{ myText }}" was copied!</span>
5746
```
5847

59-
## LICENSE
48+
## Config
6049

61-
MIT LICENSE
50+
Configuration passed into `ZeroClipboard.config`
6251

63-
Copyright (C) 2014 lisposter(Leigh Zhu)
52+
```js
53+
uiZeroclipConfigProvider.setZcConf({
54+
swfPath: '../path/to/ZeroClipboard.swf'
55+
})
56+
```
6457

65-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
58+
The params is an object. and just same as [ZeroClipboard official config](https://github.com/zeroclipboard/zeroclipboard/blob/master/docs/api/ZeroClipboard.md#configuration-options)
6659

67-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
60+
## LICENSE
6861

69-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62+
MIT @ [Leigh Zhu](http://zhu.li)

0 commit comments

Comments
 (0)