Angular: uki

http://angularjs.org/

by dandoyon

HTML

<script src="http://code.angularjs.org/0.10.4/angular-0.10.4.min.js" ng:autobind></script>
<script src="http://static.ukijs.org/pkg/0.3.8/uki.js"></script>
<div ng:controller="Ctrl" ng:init="text = 'hello'">
    <div id="test" ui:uki ng:model="text"></div>
</div>

CSS

h2 { position: fixed; right: 10px; top: 10px; color: red; background:white;z-index:1000; }
input { width: 30px; }

JavaScript

angular.directive('ui:uki', function(expression, config) {
    return function(element) {
        uki({
          view: "Button", text: "Hello world!",
          rect: "120 80 180 24"
        }).attachTo(document.getElementById(element.attr('id')));
        
    }
});
    
function Ctrl() {
    var scope = this;
}