How to connect AngularJS 2 to REST-API?

This is a new programming area for myself, because I just wrote small programs in java. In the past few days, I have tried to start a new, β€œbig” project. So far I have received:

  • launch of the mooring console with the servlet β†’ should be rest-api
  • launching the angularJS 2 project and adding some polymer components.

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

Is there anyone who understands me and can give me some advice or a link to a useful tutorial? I can also submit my code.

Thanks Michael

+5
source share
1 answer

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

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

Polymer offers a good start .

+1
source

Source: https://habr.com/ru/post/1243391/


All Articles