menu

arrow_back How to implement Angular and Java interaction?

by
1 vote
Hi all. I read that Angular is only used for one-pages.
Questions:
1. is this true?
2. I am a back-end developer and want to learn "trendy" UI frameworks. One of them is Angular 4, for this I want to do some project which is obviously more than one page. The back-end will be in Java, the DBMS will be postgresql. Is it possible to organize communication between Angular4 and my back-end via REST API? If Angular4 is not suitable for this task, how can I do it? What frameworks can be used?

2 Comments

Dmitry Roo , I guess I'm confused.
Aren't you confusing "one-pagers" and single-pagers?

2 Answers

by
 
Best answer
0 votes
>> Is it possible to organize interaction between Angular4 and my backend via REST API?
Angular allows you to communicate through a REST API. These days, almost any fancy framework can do this out of the box.
>> I read that Angular is only used for one-pages
This does not mean that you will have only one page at all. Angular allows you to display the content you want, depending on the current path in the browser.
by
1 vote
>> I read that Angular is only used for one-pages
Well, that's how you do it. What I mean is that you can make a one-page site, because you can do all the operations through ajax, but you can also make as many pages as you want.
>> I am a back-end developer and want to learn "trendy" UI frameworks. One of them is Angular 4
I also want to learn angular4, but I can't seem to get around to it. I have to learn typescript first. )))
As for the subj, all interaction with the backend is done by black box method via ajax. How you use it - php_curl, jquery, angular, C# webrequest - makes no difference.