This repository is obsoleted. Please use https://github.com/Pilatch/angularjs-ng-elm instead.
This is the simplest AngularJS directive that can reuse plain old Elm module in AngularJS application.
-
for
Elm.fullscreen
, add elm directive as an attribute of body element.<body elm module="Todo" ...>
-
for
Elm.embed
, add elm directive as an attribute of div element,<div elm module="Todo" ...>
-
for
Elm.worker
, use elm as element.<elm module="Todo" ...>
Please see Examples, Stamps App and Todo App for usages.
To compile elm to js: elm --make --only-js examples/*.elm
.