0.1.4 • Published 4 years ago

angular-immutable v0.1.4

Weekly downloads
27
License
MIT
Repository
-
Last release
4 years ago

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

0.1.4

4 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago

0.0.3

9 years ago