Hi, I'm Martin

I'm a Web Developer

Martin Sundvall

Hi, I'm Martin

I'm a Web Developer

How angular solves the frontend problems

2 minutes
March 21, 2023

With the nose deep down in the context of an frontend application source code, it is important to remember why the framework is there and how to support its usage. As an example, data and logic is separated and flows through inputs, outputs and services. It is possible to pass data around in other ways, but then the tool is unintentionally used.

frontend general problems

state management

asynchronous updates

html

css

javascript

javascript has both “class” syntax and functions and may be developed in many ways
javascript has many “magic” behaviours, like:

parseInt(0.5); // -> 0
parseInt(0.05); // -> 0
parseInt(0.005); // -> 0
parseInt(0.0005); // -> 0
parseInt(0.00005); // -> 0
parseInt(0.000005); // -> 0
parseInt(0.0000005); // -> 5
"1" + 2 + 3 // "123"
1 + "2" + 3 // "123"
1 + 2 + "3" // "33"
1 + 2 + 3 // 6

routing

security

performance

how does angular solve these problems?

one way data flow

separation of concerns

modules

observables

dom updates

angular router

global and local css