The benefits of reading English documents

For some new technical documents, there are relatively few relevant Chinese version documents, and many translations are not very accurate, and it is uncertain whether some key information will be missed.

Even if it is a relatively mature framework, such as the angular framework, when you are searching for some problems, if you can directly read the official documents, you may understand it at once (provided that you have good English reading ability).

The Chinese explanation from Baidu or google may be an answer after someone else's understanding, and his understanding may not make you understand.

For example, what is the difference between angular and config and run?

Chinese explanation:

The config stage is a stage that gives the ng context a stage to modify its internal properties for constant and provider,
and the run stage is a separate code block that runs after config. The usual way of writing runBlock
is simply that the ng startup stage is config--> run-->compile/link

After that, you may still be very confused, and you have to continue to find an explanation that you can understand.

Official explanation:

Configuration blocks - get executed during the provider registrations and configuration phase. Only providers and constants can be injected into configuration blocks. This is to prevent accidental instantiation of services before they have been fully configured.

Run blocks - get executed after the injector is created and are used to kickstart the application. Only instances and constants can be injected into run blocks. This is to prevent further system configuration during application run time.

The official documentation is relatively easy to understand, right? At a glance.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324519858&siteId=291194637