Socket
Socket
Sign inDemoInstall

angular-immutable

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-immutable

Immutable data structures in AngularJS


Version published
Weekly downloads
9
decreased by-35.71%
Maintainers
1
Install size
6.54 kB
Created
Weekly downloads
 

Readme

Source

Angular Immutable

Angular Immutable is a simple directive, which allows binding of Immutable.js collections.

Demo

var sampleApp = angular.module('sampleApp', ['immutable']);

function SampleCtrl($scope) {
  $scope.data = Immutable.List([1, 2, 3]);
}

sampleApp.controller('SampleCtrl', SampleCtrl);
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
</head>
<body ng-app="sampleApp" ng-controller="SampleCtrl">
<ul>
  <li immutable="data" ng-repeat="item in data track by $index" ng-bind="item"></li>
</ul>
<script src="/javascripts.js"></script>
</body>
</html>

Result

  • 1
  • 2
  • 3

You can find additional immutable-js tools for Angular here.

License

MIT

FAQs

Last updated on 25 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc