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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -