Skip to content

virasak/angular-elm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

AngularJS directive for Elm module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published