Dab tsi yog angular2 architecture?
Dab tsi yog angular2 architecture?

Video: Dab tsi yog angular2 architecture?

Video: Dab tsi yog angular2 architecture?
Video: Gurugedara | A/L Political (Part 2) | Tamil Medium | 2020-06-14 | Educational Programme 2024, Kaum ib hlis
Anonim

Angular yog lub platform thiab lub hauv paus rau kev tsim ib nplooj ntawv neeg siv hauv HTML thiab TypeScript. Nws siv cov ntsiab lus tseem ceeb thiab kev xaiv ua haujlwm raws li txheej ntawm TypeScript cov tsev qiv ntawv uas koj tuaj yeem nkag rau hauv koj cov apps. Cov architecture ntawm daim ntawv thov Angular tso siab rau qee cov ntsiab lus tseem ceeb.

Yog li ntawd, dab tsi yog qhov architecture ntawm angular 2?

Hauv tsab xov xwm no, koj yuav kawm txog qhov yooj yim Architecture ntawm Angular 2 daim ntawv thov. Angular yog lub platform rau tsim web thiab mobile applications. Angular 2 tsis yog qhov hloov tshiab ntawm Angular 1.x mas Angular 2.0 yog rov sau thiab muaj ntau yam kev hloov pauv.

Tom qab, lo lus nug yog, dab tsi yog qhov tseem ceeb ntawm cov angular? Angular JS cov khoom tseem ceeb yog:

  • Template - Qhov no yog siv los ua qhov pom rau daim ntawv thov.
  • Chav Kawm - Qhov no zoo li chav kawm uas txhais ua ib hom lus xws li C.
  • Metadata - Qhov no muaj cov ntaub ntawv ntxiv tau txhais rau chav Angular.
  • app.component.css.
  • app.component.html.
  • app.component.spec.ts.
  • app.component.ts.
  • app.module.ts.

Tsuas yog li ntawd, cov chav kawm angular saib yog dab tsi?

Angular muaj peb hom ntawm saib cov chav kawm : Cheebtsam, cov lus qhia, thiab cov kav dej. exports - lub subset ntawm cov lus tshaj tawm uas yuav tsum tau pom thiab siv tau nyob rau hauv cov tivthaiv templates ntawm lwm yam modules. imports - lwm yam modules uas nws exported chav kawm yog xav tau los ntawm cov qauv qauv uas tau tshaj tawm hauv qhov module no.

Dab tsi yog cov ntsiab lus tseem ceeb ntawm angular 2?

Cov lus qhia, thiab tshwj xeeb hauv cov khoom, yog qhov tseem ceeb tshaj plaws ntawm Angular . Lawv yog cov tsim nyog tsev blocks ntawm Angular 2 daim ntawv thov. Lawv piav txog tus kheej. Lawv piav qhia lawv cov API pej xeem, uas yog cov khoom siv thiab cov khoom tawm.

Pom zoo: