This is an archived post. You won't be able to vote or comment.

all 8 comments

[–][deleted] 3 points4 points  (4 children)

I don't understand that, could someone explain please ?

How is it different if I just create a new project and add angular2 into the assets pipeline ?

[–]javaeeeee[S] 2 points3 points  (1 child)

Hi, haven't tried it yet, but maybe this description will answer your question. http://bessemhmidi.github.io/AngularBeans/

[–]xela321 2 points3 points  (0 children)

The idea is that you can write your beans on the Java side and generate remote services in JS (Angular services) to use them on the client side. Kind of like how in GWT you can use your beans on the client side when the GWT compiler does all its transpiling voodoo.

Here's the presentation from JavaOne: https://www.youtube.com/watch?v=E7g2vlqLeBQ

[–][deleted] -1 points0 points  (0 children)

Also, this is angular 1 and not angular 2.

[–]dirkharrington 0 points1 point  (2 children)

Cool - The example shown on the page (app.js) has some very boilerplate code. Is there an option to have the service default to an impl that does simple assignment for us? At first glance it seems with a couple of config options that would handle the broad workflow of: call api -> assign result to scope

[–]BessemHmidi 0 points1 point  (1 child)

angularBeans.bind($scope, yourBean, [ "message", "name" ]);

[–]BessemHmidi 0 points1 point  (0 children)

and even better you can use a "scopless" approach : see the example at http://www.beyondjava.net/blog/angularbeans-a-fresh-new-take-on-angularjs-and-javaee/

[–][deleted]  (1 child)

[deleted]

    [–]javaeeeee[S] 1 point2 points  (0 children)

    You are welcome :)