Today, you can use Angular + React with ng-react but I think isn't friendly enough.
Angular-Riot is a module for expose riot under angular, because:
- Can use only riot for rendering.
- Get more performance in your app.
- Eliminate warnings if you using jshint.
- Create reactive views without pain.
Reduce the number of $$watchers inside Angular to improve the $digest cycle’s performance, beyond get all the benefits of using riot.
I'm using in a old project and decreased the time rendering in seconds to mileseconds.
You need the riot installed, if you not have in your project, run command below:
$ bower install riot --save
$ bower install angular-riot --save
Don't know RIOT learn more.
$ bower uninstall angular-riot --save
Foolow these instructions and create similar code,
angular.module('moduleName', ['angular-riot'])
.controller('ctrlName', ['$scope', $document, 'riot', function ($scope, $document, riot) {
$document.ready(function () {
riot.mount('todo', {
title: 'I want to behave!',
items: [
{ title: 'Avoid excessive coffeine', done: true },
{ title: 'Hidden item', hidden: true },
{ title: 'Be less provocative' },
{ title: 'Be nice to people' }
]
});
});
}]);
0.0.1
- Coming soon
MIT
Free Software, Hell Yeah!