On Angular 4, are controllers executed on the browser or server? -


i building angular 4 app. local development running app using ng serve.

it seems angular running in browser. ng serve development tool? possible run angular controllers on server , not browser?

angular indeed front end framework, , such runs in browser. ng serve runs webpack development server can see application looks without having spin separate webserver , bundle code. when deploy, you'll have existing webserver host angular code, controllers responsible client side (browser) markup. server side routing (controllers on server), wouldn't use angular sort of server side web framework. example, can use nodejs on server side server side controllers (often times these return json data angular app work with).


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -