Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit a5a763d

Browse files
committed
readme.md
1 parent d024b7c commit a5a763d

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

README.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# ui-mention
22
Facebook-like @mentions for text inputs built around composability
33

4-
## Contribute
5-
6-
0. `npm install`
7-
0. `npm install -g gulp bower`
8-
0. `bower install`
9-
0. `gulp [watch]`
10-
0. Compiling the example code: `gulp example [watch]`
4+
## Installation Methods
115

6+
### npm
7+
```
8+
$ npm install angular-ui-mention
9+
```
10+
### bower
11+
```
12+
$ bower install angular-ui-mention
13+
```
1214
## Usage
13-
15+
```
1416
For now, you should create a child-directive to customize (API probably going to change)
1517
1618
```js
@@ -100,6 +102,15 @@ And the CSS:
100102

101103
_All these features come at the amazingly low price of DO IT YOURSELF and $0.00. YMMV._
102104

105+
User your own patterns:
106+
```js
107+
mention.delimiter = '/* delimiter */';
108+
109+
mention.searchPattern = new RegExp("/* pattern */");
110+
111+
mention.decodePattern = new RegExp("/* pattern */");
112+
```
113+
103114
Find things!:
104115
```js
105116
mention.findChoices = function(match) {
@@ -173,3 +184,11 @@ SPINNIES!
173184
<li ng-repeat=...>...</li>
174185
</ul>
175186
```
187+
188+
## Contribute
189+
190+
0. `npm install`
191+
0. `npm install -g gulp bower`
192+
0. `bower install`
193+
0. `gulp [watch]`
194+
0. Compiling the example code: `gulp example [watch]`

0 commit comments

Comments
 (0)