How does Angular Work?

Academind by Maximilian Schwarzmüller
A free video tutorial from Academind by Maximilian Schwarzmüller
Online Education
4.6 instructor rating • 23 courses • 1,011,784 students

Lecture description

In order to use Angular, you also need to know how it works - this lecture dives into that question.

Learn more from the full course

Angular Essentials (Angular 2+ with TypeScript)

The most efficient way to dive into Angular 2+ if you got limited time or need to refresh the basics!

06:33:37 of on-demand video • Updated October 2019

  • Build highly reactive and user-friendly web applications running in the browser (driven by JavaScript)
  • Dive deeper into Angular with very solid fundamentals taught by this course
English [Auto] In the last lecture we answer to question what angular is altered that Engler is a javascript framework. This is almost true. Yes. In the end it's javascript. This is 100 percent true. But actually it uses typescript a superset to javascript typescript is a language invented by Microsoft which doesn't run in the browser and therefore we can't write our app in typescript and expected to run like this in the browser. But you can compile it to javascript and actually typescript the language ships with its own compiler which does just that. Dangler team chose typescript as their primary language for angler's development. There are a couple of reasons for that. Typescript is an awesome language. In the end which adds new features to javascript which really enhanced the language the most prominent addition is the one which gave typescript its name. The addition of types by default Javascript is a weekly type language. So if we have a variable which stores some text it is indeed of type string but it doesn't really care if we then assign a number to this variable. We are able to switch types of variables off properties all the time and that makes our app less predictable and harder to debug and to test with typescript. These problems are eliminated because typescript allows us to strongly tie up our variables so that we clearly assign a type to a variable to a property whatever it is. And if we ever during development make the mistake of assigning a wrong type of value which is not the right type we get a warning. So that was the reason why type was chosen as a language. As I said it doesn't run like this in the browser. So in the build word it's low which we actually need to set up. We have to compile typescript to javascript that has one important application. I already mentioned it will have a built workflow so we can't just import some libraries some package in our HTL file and then import our own javascript code and simply use that and start coding and ship it like this. Unfortunately for angular the setup is a bit more complicated but it will come back to disk and show how we can still make it very easy in the next lecture. Let's go back to typescript since angular dangler team chose typescript as their primary language. You should also write your English or your code in typescript. But no worries. You don't need to be a typescript expert at all. You can simply learn typescript while learning angular typescript offers many features but you don't have to use them all. You can still write normal javascript code and the majority of the code you write is just normal javascript code and use some of the types of features and actually in this course you will learn typescript whilst learning angular. So dad is typescript and I did mention it is more complex workflow that leads us to our first application which will create in the next lecture and a question How complex is the set up. We have to create. How quickly can we get started. Dancer is very quick So let's dive into the next lecture and into our first act.