scalajs-angulate
scalajs-angulate copied to clipboard
Missing features, improvements, and project road map
Hi all,
this thread is intended to discuss missing features, suggesting improvements and planning the road map for this project. Your input is welcome!
Migrate to Angular 2.0
Angular 2 support will be provided by angulate2.
Genial, thanks
Enable shared domain model :-) The goal would be to be able to define case class not extending js.Object
usable with angulate and plain scala. I see it as the best arguemnt for scala.js. Currently I notice 2 places where js.Object
are required in angulate: 1. in $http for get/post/put and 2. for the javascript code in html (ng-model, for-loop in select, etc.). Would it be feasible?
@florianhof there is some limited support for this provided by the experimental @Data
annotation:
@Data
case class Foo(bar: String)
val foo = Foo("bar")
js.Dynamic.console.log(foo) // will print out {foo: 'bar'}
The angulate Heroes example is using this annotation.
EDIT: sorry forget this post, you're talking about angular 1.x... @Data
is only available in angulate2