# angular-linq

> **NodeJs**

Latest version **1.0.6** (published 2017-08-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install angular-linq
pnpm add angular-linq
yarn add angular-linq
bun add angular-linq
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-08-29 |
| First published | 2017-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | alansferreira |

## Links

- npm: https://www.npmjs.com/package/angular-linq
- Repository: https://github.com/alansferreira/ngLinq
- Homepage: https://github.com/alansferreira/ngLinq#readme
- Issues: https://github.com/alansferreira/ngLinq/issues
- npm.io page: https://npm.io/package/angular-linq

## Dependencies (2)

- [linq](https://npm.io/package/linq.md) 3.0.8
- [angular](https://npm.io/package/angular.md) ^1.6.6

## Recent versions

- 1.0.6 (latest) — 2017-08-29
- 1.0.5 — 2017-08-29
- 1.0.4 — 2017-08-29
- 1.0.3 — 2017-08-29
- 1.0.2 — 2017-08-29

## README

# ngLinq

## Installations
**NodeJs**

```
npm i angular-linq
```

**Bower**
```
bower i angular-linq
```

**Html**
```html
<script src='bower_components/angular-linq/dist/ngLinq.min.js'>
```


## Use

```html
<script src='bower_components/angular/angular.min.js'>
<script src='bower_components/linqjs/linq.min.js'>

<script src='bower_components/angular-linq/dist/ngLinq.min.js'>

<script>
angular('myApp', ['ngLinq'])
.controller('ctrl1', function($scope, $from){
    $scope.data = [
        {id: 2, text: 'item 2'},
        {id: 1, text: 'item 1'},
        {id: 3, text: 'item 3'},
    ];
    
    var sortedByName = $from($scope.data).orderBy('$.text').toArray();
    var allIds = $from($scope.data).select('$.id').toArray();
    var allTexts = $from($scope.data).select('$.text').toArray();
    
    //controller stuffs...


});
</script>
```

## Depencencies 

> https://github.com/mihaifm/linq for bower

> https://github.com/joaom182/linqjs        for npm

---
_Source: https://npm.io/package/angular-linq · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
