scalajs-angulate icon indicating copy to clipboard operation
scalajs-angulate copied to clipboard

Missing features, improvements, and project road map

Open jokade opened this issue 9 years ago • 5 comments

Hi all,

this thread is intended to discuss missing features, suggesting improvements and planning the road map for this project. Your input is welcome!

jokade avatar May 11 '15 13:05 jokade

Migrate to Angular 2.0

Miuler avatar May 12 '15 05:05 Miuler

Angular 2 support will be provided by angulate2.

jokade avatar May 17 '15 18:05 jokade

Genial, thanks

Miuler avatar May 19 '15 02:05 Miuler

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 avatar Apr 04 '17 17:04 florianhof

@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... @Datais only available in angulate2

jokade avatar Apr 04 '17 19:04 jokade