Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 809 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 809 Bytes

AngularJS directive for Elm module

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.