Skip to content

Simple directive, which allows binding to Immutable.js collections.

Notifications You must be signed in to change notification settings

mgechev/angular-immutable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple directive, which allows binding to Immutable.js collections.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •