Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Improved README guide on installation steps. #939

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,51 @@ AngularJS-native version of [Select2](http://ivaynberg.github.io/select2/) and [
For the roadmap, check [issue #3](https://github.com/angular-ui/ui-select/issues/3) and the [Wiki page](https://github.com/angular-ui/ui-select/wiki/Roadmap).


## Install

You can install this package either with `npm` or with `bower`.

### npm

[npm registry here](https://www.npmjs.com/package/ui-select).

```shell
npm install ui-select
```

Add to your `index.html`:

```html
<link rel="stylesheet" type="text/css" href="/node_modules/ui-select/dist/select.min.css">
<script type="text/javascript" src="/node_modules/ui-select/dist/select.min.js"></script>
```

Then add `ui.select` as a dependency for your app:

```javascript
angular.module('myApp', ['ui.select']);
```

### bower

```shell
bower install angular-ui-select
```

Add to your `index.html`:

```html
<link rel="stylesheet" type="text/css" href="/bower_components/angular-ui-select/dist/select.min.css">
<script type="text/javascript" src="/bower_components/angular-ui-select/dist/select.min.js"></script>
```

Then add `ui.select` as a dependency for your app:

```javascript
angular.module('myApp', ['ui.select']);
```


## Development

### Prepare your environment
Expand Down