diff --git a/README.md b/README.md index 3224f68..527bba1 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,2 @@ -# ui-limit-to -uiLimitTo is an alternative of Angular's [`limitTo`](https://docs.angularjs.org/api/ng/filter/limitTo) to ensures that the model is in the input resource. - -### Common use cases -* [ui-select](https://github.com/angular-ui/ui-select) - -=== - -### Install -* Using bower -``` -bower install ui-limit-to --save -``` - -* Not using any package manager
-Just copy the `builds/release/uiLimitTo.js` script to your project. - -=== - -### Usage - -#### Load -* Load the script in your index.html - -```html - -``` - * Load the module as dependence - -```javascript - angular.module('YourModule', ['uiLimitTo']); -``` - -#### Using in html -```html -
-
- -
-
-
-
-
-``` - -#### Using in JS -```javascript - var list = [{ id: 1 }, { id: 2 }, { id: 3 }], - maxLimit = 2, - myModel = { id: 3 }, - compareBy = 'id'; - - $filter('uiLimitTo')(list, maxLimit, myModel, compareBy); - // -> [{ id: 1 }, { id: 3 }] -``` - -=== - -### API -#### Arguments -|Param|Type|Details| -|---|---|---| -input| `Array|ArrayLike|String|Number` | resource which will be limited. -limitNumber | `Number` | The length of the returned array or string. If the limit number is positive, limit number of items from the beginning of the source array/string are copied. If the number is negative, limit number of items from the end of the source array/string are copied. The limit will be trimmed if it exceeds array.length. If limit is undefined, the input will be returned unchanged. -model | `Object|String|Number`| resource which will be searched in list. -modelProperty | `String` | specifies the property to be compared when search the model in the list. -begin | `Number` | Index at which to begin limitation. As a negative index, begin indicates an offset from the end of input. -options | `Object` | Additional options like `options.comparator` - -#### returns -`{Array|ArrayLike|String|Number}` The same type of input argument. +# ng-fill-height +ngFillHeight is an directive that resizes a DOM element until before refered parent creates a scroll. diff --git a/bower.json b/bower.json index 082ed6a..cb3570b 100644 --- a/bower.json +++ b/bower.json @@ -10,7 +10,7 @@ "url": "git://github.com/TimeoutZero/ng-fill-height.git" }, "main": [ - "builds/release/uiLimitTo.js" + "builds/release/ngFillHeight.js" ], "dependencies": { "angular": "1.4.7" @@ -48,7 +48,10 @@ "demo", ".vscode", "test", - "tests" + "tests", + "gulpfile.js", + "karma.conf.js", + "package.json" ], "license" : "MIT" }