5

this is a new field of programming for myself, because I just wrote little programmes in java so far. In the last few days I tryed to start a new, "bigger" project. Until now I got a:

  • running jetty console with a servlet --> should be the rest-api
  • running angularJS 2 project and added some polymer-components

My problem is to get the variable data inside the polymer elements. It doesn't matter if i got them about polymer data binding or about javascript and the rest api..But i don't know how to do it..

Is there anyone, who understands me and could give me some tips or a link to a useful tutorial? By interest I can present my code, too.

Thanks, Michael

Michi
  • 114
  • 8
  • Do you mean http://stackoverflow.com/questions/13124234/best-way-to-include-javascript-in-java-servlets ? – Gary Y Kim Feb 19 '16 at 11:36
  • no, i'm actually working with that...the problem is to get data in the polymer elements...i may should adapt my question – Michi Feb 19 '16 at 11:55
  • for consuming REST API with angular2 you should read out this. http://stackoverflow.com/a/34823818/5043867 and http://stackoverflow.com/a/34758630/5043867 – Pardeep Jain Mar 04 '16 at 18:24
  • Possible duplicate of [Angular 2: How to use/import the http module?](https://stackoverflow.com/questions/28910864/angular-2-how-to-use-import-the-http-module) – HaveSpacesuit Jul 17 '17 at 14:58

1 Answers1

1

AngularJS and Polymer are competing technologies that are unlikely to work together and certainly should not be used together.

In particular, they offer different data binding approaches that won't work together. This is true for every JS data binding technology.

Polymer offers some good getting started.

Scott Boring
  • 2,601
  • 1
  • 25
  • 31