Z
Z
zerofx2016-11-05 15:21:32
Angular
zerofx, 2016-11-05 15:21:32

What is angular js for - in php?

What is angular js for - in php?
How to typeset - I understand it, but I can’t understand what is the benefit in it and how to work with php
What is the point - speed of work, minimal use of resources? ..
As I understand it, it all comes down to using and transmitting information via ajax.
Briefly, thank you

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vyacheslav Plisko, 2016-11-06
@AmdY

Angular.js, like other js frameworks, allows you to separate the client-side from the server-side.
At the same time, for a php developer, it doesn’t matter which framework is used on the client, angular, or react, or jquery, you just accept requests and send data without worrying about how they will be displayed. At the other end, there can be at least a flash, even a desktop application.
At the same time, it doesn't matter to the client developer what framework or programming language will be on the server, he sends and receives data and only cares about the user interface. It's good practice to develop separately from the back-end, when you work with static data prepared in advance and do not wait until the back-end is programmed.
So there are a lot of profits.
Ajax requests have nothing to do with it.

S
Stanislav Pochepko, 2016-11-07
@DJZT

Основная "Видимая" задача, это организовать дружественный UI для пользователя. Без перезагрузки страниц. Например, у вас есть обычный TODO список. И на каждом элементе вы имеете 2 кнопки (Удалить, Редактировать - появляется input для редактирования элемента). Так же есть форма для добавления нового элемента. И что бы при нажатии на любую кнопку всё выглядело красиво и не тормозило - то используются js фреймвёрки или библиотеки, которые делают это всё в фоне.
Не важно на чём написан back. Это может быть и .net или Java. В общем любой язык. Общаются они на одном понятном языке - JSON(JSONP).

P
polifill, 2016-11-05
@polifill

The application, the whole application - on the client side, in the browser.
And not with constant reloading of the page from the server.
If you have a simple system that involves little interaction with the user, then Angular is redundant for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question