angular 2 dart transformer

angular 2 dart transformer

ID:40368035

大?。?05.34 KB

頁數(shù):6頁

時(shí)間:2019-08-01

angular 2 dart transformer_第1頁
angular 2 dart transformer_第2頁
angular 2 dart transformer_第3頁
angular 2 dart transformer_第4頁
angular 2 dart transformer_第5頁
資源描述:

《angular 2 dart transformer》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。

1、Angular?2?Dart?TransformerAuthor:?tjblasi@google.comSummaryThe?purpose?of?this?doc?is?to?explain?the?goals?and?design?of?the?Angular?2?Dart’s?code?generation?step.?The?mechanism?used?will?be?a?Pub?Transformer,?which?is?not?related?to?the?Traceur?transformations?whi

2、ch?generate?the?Dart?and?Js?flavors?of?Angular?2.SummaryLinksGoalSubgoalsDesignPhase?1??DirectiveProcessorImplementation?OverviewPhase?2??Directive?LinkerImplementation?OverviewPhase?3??BindGeneratorExampleImplementation?OverviewPhase?4??Template?CompilerImplementa

3、tion?OverviewPhase?5??ReflectionRemoverImplementation?OverviewOmissionsGenerate?Change?Detection?classes?instead?of?getters?&?settersProposed?SolutionTree?Shake?Transformed?Angular?2?AppsProposed?SolutionsGenerate?.ng_deps.dart?files?perclass?instead?of?perfileDiff

4、icultiesAdd?a?resolved?step?that?walks?from?bootstrap?callsDifficultiesDebug?Transformation?FailuresProposed?SolutionAdditional?ConsiderationsLinks●Current?implementation?(incomplete)●Angular?2?Dart?Transform?ExampleGoalAngular?2?uses?reflection?under?the?covers?to

5、?provide?dependency?injection?(DI)?and?change?detection.?While?reflective?access?is?very?convenient,?it?can?be?slow?and?defeats?Dart’s?tree?shaking?ability,?so?we?plan?to?create?a?Pub?Transformer1?to?generate?code?removing?the?need?for?reflection.Subgoals●Make?the?

6、generated?code?easy?to?understand?and?reason?about.●Allow?effective?code?splitting?(ensure?this?scheme?works?with?the?routingbased?code?splitting?proposal).●Good?developer?experience??quick?transformations??Avoid?resolving?the?Angular?2?app?where?possible.●Allow?us

7、e?of?the?DI?system?independent?of?the?rest?of?Angular?2.DesignThe?Angular?2?Dart?transformer?will?operate?in?several?phases?and?in?a?few?different?modes?to?generate?clean,?understandable,?treeshakable?code.This?is?still?under?development?and?may?change?in?the?futur

8、e.?All?“Implementation?Details”?are?as?of?069bbf3.Phase?1??DirectiveProcessorThis?phase?parses?all?.dart?files?in?a?package?and?generates?a?.ng_d

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動(dòng)畫的文件,查看預(yù)覽時(shí)可能會(huì)顯示錯(cuò)亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負(fù)責(zé)整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時(shí)聯(lián)系客服。
3. 下載前請仔細(xì)閱讀文檔內(nèi)容,確認(rèn)文檔內(nèi)容符合您的需求后進(jìn)行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時(shí)可能由于網(wǎng)絡(luò)波動(dòng)等原因無法下載或下載錯(cuò)誤,付費(fèi)完成后未能成功下載的用戶請聯(lián)系客服處理。