Skip to content

Commit 95a201f

Browse files
committed
add example to use with bower
1 parent f5ca193 commit 95a201f

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ File manager developed with AngularJS and Bootstrap by [Jonas Sciangula Street](
2525
### Backend API
2626
[Read the documentation](API.md)
2727

28+
### Use in your existing project
29+
**1) Install and use**
30+
```bower install --save angular-filemanager```
31+
32+
**2) Include the dependencies in your project**
33+
```html
34+
<!-- third party -->
35+
<script src="/bower_components/angular-translate/angular-translate.min.js"></script>
36+
<script src="/bower_components/angular-cookies/angular-cookies.min.js"></script>
37+
<!-- angular-filemanager -->
38+
<link rel="stylesheet" href="/bower_components/angular-filemanager/dist/angular-filemanager.css">
39+
<script src="/bower_components/angular-filemanager/dist/angular-filemanager.min.js"></script>
40+
<script src="/bower_components/angular-filemanager/dist/cached-templates.js"></script>
41+
```
42+
43+
**3) Use the angular directive in your HTML**
44+
```html
45+
<angular-file-manager></angular-file-manager>
46+
```
47+
2848
### Contribute
2949
To contribute to the project you can simply fork this repo. To build a minified version, you can simply run the Gulp
3050
task `gulp build`. The minified/uglified files are created in the `dist` folder.
@@ -34,5 +54,4 @@ Special thanks to [@silentHoo](https://github.com/silentHoo).
3454
For transparency into our release cycle and in striving to maintain backward compatibility, angular-filemanager is maintained under [the Semantic Versioning guidelines](http://semver.org/).
3555

3656
### Copyright and license
37-
Code and documentation released under [the MIT license](https://github.com/joni2back/angular-filemanager/blob/master/LICENSE).
38-
57+
Code and documentation released under [the MIT license](https://github.com/joni2back/angular-filemanager/blob/master/LICENSE).

0 commit comments

Comments
 (0)