angular-elm

AngularJS directive for Elm module

Added by: Sam Deering

GitHub

Repository

virasak/angular-elm

Stats

Stars: 2

Watchers: 2

Forks: 0

Module Description

AngularJS directive for Elm module

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.

Module stats last updated: 2015-06-04 11:08:45

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!