å€ãã®äººã以åã®Reactã®éäŒçµ±çãªã¬ãã¥ãŒã®ç¿»èš³ãæ°ã«å ¥ã£ãŠããããã¡ããã人ã ã¯Reactãšäººæ°ã®ããAngularJSãæ¯èŒãå§ããŸããã æ¬æ¥ãåãèè ïŒJames ShoreãLet's CodeïŒTest-Driven JavaScriptã®ãã¹ãïŒããã®èšäºãAn Anconventional Review of AngularJSãã®ç¿»èš³ãå ¬éããŠããŸãã è§åºŠã®ãããã¡ã³ã¯èœã¡çããŠãã ããã
AngularJSã¯ããã¬ãŒã ã¯ãŒã¯ã«æåŸ ãããã¹ãŠã§ãã ãããŠãããã¯è¯ããããŸããã
11æã12æã1æã«ãLet's Code JavaScriptãããžã§ã¯ãã®äžç°ãšããŠãäžé£ã®ãããã³ããšã³ããã¬ãŒã ã¯ãŒã¯ãã«ã€ããŠAngularJSãã¬ãã¥ãŒããŸããã åèšã§ãåé¡ã®èª¿æ»ãããã°ã©ãã³ã°ãããã³è§£æ±ºã«40æéè²»ãããŸããã ãã€ãã®ããã«ãç§ã®ç®æšã¯ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããŠAngularJSãåŠã¶ããšã§ããã
çŸåšã Angularã¯ããããæã人æ°ã®ããããã³ããšã³ããã¬ãŒã ã¯ãŒã¯ã§ãã Googleã®ããŒã ã«ãã£ãŠéçºãããŠãããããã«èªä¿¡ãåŒã³èµ·ãããŸãã é åèªã«å«ãŸããŠããã»ã©äººæ°ãââãããŸãã Angularã¯ãããããMEANã¹ã¿ãã¯ã®äžéšã§ããMongoDBãExpressãAngularJSãNode.JSã æãå é²çãªãã¯ãããžãŒã
Angularã¯ãããèªäœãHTMLãæ¹åããããŒã«ãšããŠèª¬æããŠããŸãã ããã«ãããéçãªHTMLããã¥ã¡ã³ããåçãªãã³ãã¬ãŒãã«å€æããæ°ããå®çŸ©ïŒãã£ã¬ã¯ãã£ãïŒã§HTMLãæ¡åŒµã§ããŸãã ãã£ã¬ã¯ãã£ãã¯å±æ§ãŸãã¯ã¿ã°ïŒãŸãã¯ã³ã¡ã³ããã¯ã©ã¹ã§ãããããŸãããããã¯ãã¯ãæ®éã®è©±ã§ã¯ãããŸããïŒã§ãããéçãªHTMLããã¥ã¡ã³ããJavaScriptãè¿œå ããã«äžèŠçãçããšãããã®ã«å€ããŸãã
æè¯ã®äŸã¯ãæåãªåæ¹åãã€ã³ãã£ã³ã°ã§ãã HTMLãã³ãã¬ãŒãã«ã¯ãã»ãšãã©ã®ãã³ãã¬ãŒãèšèªãšåæ§ã«å€æ°ãå«ããããšãã§ããŸãããAngularã®å Žåãå€æ°ãæŽæ°ããããã³ã«ããŒãžãèªåçã«æŽæ°ãããŸãã
ããšãã°ãã¬ãã¥ãŒçšã«äœæããã¢ããªã±ãŒã·ã§ã³ã«ã¯ãæ§æãã£ãŒã«ããå€æŽããããšå€æŽãããããŒãã«ããããŸãã 以äžã¯ãããŒãã«ã®è¡ãã¬ã³ããªã³ã°ããã³ãŒãã®ã¹ããããã§ãã ã€ãã³ããã¹ããŒã¿ã¹ã®ç£èŠã«é¢ããäœæ¥ããªãããšã«æ³šæããŠãã ãããè¡ã®ã»ã«ãèšè¿°ãããã³ãã¬ãŒãã«ãããŸããã Angularã¯ãã¹ãŠãèªåçã«è¡ããŸãã
// Copyright (c) 2014-2015 Titanium IT LLC. All rights reserved. For license, see "README" or "LICENSE" file. (function() { "use strict"; var StockMarketCell = require("./stock_market_cell.js"); var stockMarketRow = module.exports = angular.module("stockMarketRow", [StockMarketCell.name]); stockMarketRow.directive("stockMarketRow", function() { return { restrict: "A", transclude: false, scope: { value: "=" }, template: '<tr>' + '<td stock-market-cell value="value.year()"></td>' + '<td stock-market-cell value="value.startingBalance()"></td>' + '<td stock-market-cell value="value.startingCostBasis()"></td>' + '<td stock-market-cell value="value.totalSellOrders().flipSign()"></td>' + '<td stock-market-cell value="value.capitalGainsTaxIncurred().flipSign()"></td>' + '<td stock-market-cell value="value.growth()"></td>' + '<td stock-market-cell value="value.endingBalance()"></td>' + '</tr>', replace: true }; }); })();
éæ³ã
ãã®ãããªäŸã§ã¯ãAngularãããã»ã©äººæ°ãåããçç±ãç°¡åã«ããããŸãã 圌ã«ãšã£ãŠãé£ããåé¡ã¯ããããªããã«æããŸãã ããããããã¯æã®è©Šç·Žã«èããŸããïŒ
åç Žããªã¬ãã¥ãŒ
ããŸãã«ãå€ãã®ãã¬ãŒã ã¯ãŒã¯ãéã蟌ããããŠããŸããéå§ããã®ã¯ç°¡åã§ããããã¯éåžžã«ã¯ãŒã«ã§ãããåŸã§ã³ãŒããç¶æããã³æ¡åŒµããããšã¯éåžžã«å°é£ã§ãã ããã¯ããŸãã¯ãŒã«ã§ã¯ãããŸããã
ãã®ããããã¬ãŒã ã¯ãŒã¯ã確èªãããšããããã©ãŒãã³ã¹ã人æ°ããŸãã¯ãµã€ãºã®éåžžã®åºæºãèŠãŠããŸããã ãããã1ã€ã®éèŠãªè³ªåã«å¯Ÿããçããç¥ãããã§ãã
ä»åŸ5ã10幎以äžã補åããµããŒããããšãã«ããã®ã³ãŒãã¯ããå€ãã®å©çãèŠãã¿ããããããŸããïŒ
ã»ãšãã©ã®ãã¬ãŒã ã¯ãŒã¯ã¯ã補åã®æåã®äœæã«ãããæéãç¯çŽã§ããããã«èšèšãããŠããŸãã ãããããããã®ã³ã¹ãã¯ãã¢ããªã±ãŒã·ã§ã³ãæ°å¹Žéç¶æããããã®ã³ã¹ããšæ¯ã¹ããšäºçŽ°ã§ãã ãã¬ãŒã ã¯ãŒã¯ãæšå¥šããåã«ãæéã®è©Šç·Žã«èããããšãç¥ã£ãŠããå¿ èŠããããŸãã ããã¯ç§ãšãšãã«æé·ããå€åããŸããïŒ ãããšãã3幎åŸã«ã¯ã»ãšãã©é©åããªãéºç£ã®æçžã«èº«ã眮ãã§ããããïŒ
ç§ã¯5ã€ã®äžè¬çãªå±éºãèŠãŠããŸãã
1.ééïŒããã¯ã€ã³ïŒã æ°ãããŸãã¯ããè¯ããã¬ãŒã ã¯ãŒã¯ïŒãŸãã¯ã©ã€ãã©ãªïŒã«ã¢ããã°ã¬ãŒãããããšã«ããå Žåãåãæ¿ããã®ã¯ã©ããããé£ããã§ããããïŒ
2.ãªãžããã¢ãŒããã¯ãã£ïŒãªãããªã³ã¢ãŒããã¯ãã£ïŒã ã¢ããªã±ãŒã·ã§ã³ãå¿ èŠãšããæ¹æ³ã§åé¡ã解決ã§ããŸããããŸãã¯ãã¬ãŒã ã¯ãŒã¯ã®äœæè ãéçºããããã€ãã®ã¢ã€ãã¢ã«åŸãå¿ èŠããããŸããïŒ
3.ãµã€ãã®è€éãïŒå¶çºçãªè€éãïŒã ç§ã¯èªåã®åé¡ã解決ããã®ã«æéãç¡é§ã«ããŠããã®ã§ããããããšããã¬ãŒã ã¯ãŒã¯ã«èŠåŽããŠããŸããïŒ
4.ãã¹ãã æšæºããŒã«ã䜿çšããŠãã¢ãã¯ãªããžã§ã¯ãã§äžå¿ èŠãªåé¡ãçºçãããããšãªããã³ãŒãããã¹ãããããšã¯ã§ããŸããïŒ
5.ãµãŒããŒã§ã®ã¬ã³ããªã³ã°ïŒãµãŒããŒåŽã®ã¬ã³ããªã³ã°ïŒã 人ã ã¯JavaScriptã圹ã«ç«ã€ãã®ãèŠãã®ãåŸ ã€ã§ããããïŒ æ€çŽ¢ãšã³ãžã³ã«ãµã€ãã®ã€ã³ããã¯ã¹ãäœæãããããã«ãã¿ã³ããªã³ãšèžãå¿ èŠããããŸããïŒ
ïŒuiiiïŒïŒãïŒBueeeïŒïŒããŸãã¯âïŒããã§ãããã§ããªãïŒã䜿çšããŠãåã«ããŽãªã§Angularãè©äŸ¡ããŸããã
1.éé-ïŒbueeeïŒïŒ
質åãªãïŒAngularã¯ããªããéã蟌ããŸãã ç¹å®ã®Angularå®çŸ©ãšã³ãŒãã䜿çšããŠãç¹å®ã®Angularãã³ãã¬ãŒãã§ç¹å®ã®Angularãã£ã¬ã¯ãã£ãã䜿çšããŠã€ã³ã¿ãŒãã§ã€ã¹ãå®çŸ©ããŸãã ããããæœè±¡åããæ¹æ³ã¯ãããŸããã åãæ¿ããå Žåã¯ããã¹ãŠããŒãããæžãçŽããŸãã
ããã¯äžè¬çãªæ¹æ³ã§ãã ããŸãã«ãæ®éãªã®ã§ãéåžžã¯ãããã§ãããã§ããªãããšããé¡ãããæ©äŒãäžããŸãã ããããAngularã¯æ£ç¢ºã«ãbueeeããç²åŸããããšããŸããã
ãŸããAngularã¯ãã¹ãŠã®ã¯ã©ã€ã¢ã³ãã³ãŒãã®ãã¹ã¿ãŒã«ãªããããšèããŠããŸãã Angularã§ã¢ããªã±ãŒã·ã§ã³ãäœæããå Žåãããã¯ãAngularåºæã®æ€èšŒã䜿çšããAngularåºæã®ãµãŒãã¹ã®åœ¢ã§ããžãã¹ããžãã¯ãèšè¿°ããAngularåºæã®ãµãŒãã¹ãä»ããŠããã¯ãšã³ãã«æ¥ç¶ããå¿ èŠãããããšãæå³ããŸãã
次ã«ãAngularããŒã ã¯ããµããŒãã³ã¹ããåªå äºé ã§ã¯ãªãããšãæ確ã«ããŸãã IE 8ã®ãµããŒãã¯Angular 1.3ã§å»æ¢ãããAngular 2ã¯å€§å¹ ã«æžãçŽãããçŸåšã®ããŒãžã§ã³ã®ããã€ãã®éèŠãªæŠå¿µãå¿ããŠããŸãã ããããã¢ããªã±ãŒã·ã§ã³å šäœãæžãæããçç±ã§ããå¯èœæ§ããããŸãã
ç¹°ãè¿ããŸãããããã³ããšã³ãå šäœãããã¯ãããŠãããäœãå€æŽããŠããªããŠããããããäœããæžãæããå¿ èŠããããŸãã æžãæãã¯ã²ã©ãèãã§ãã ããªãã¯ãã§ã«æã£ãŠãããã®ãç¹°ãè¿ãããã«å€ãã®ãéãšæéãè²»ããã§ãããã ããŒããããã«ãã¢ããªã±ãŒã·ã§ã³ã®æžãæãããšããã¢ã€ãã¢ãå«ãŸããŠãããã¬ãŒã ã¯ãŒã¯ã¯åãå ¥ããããŸããã
2.ãªãžããã¢ãŒããã¯ãã£-âïŒããã§ãããã§ããªãïŒ
Angularã¯ãã¢ããªã±ãŒã·ã§ã³ãç¹å®ã®åœ¢åŒã§æ§ç¯ããããšãæãã§ããŸããããããããŸãæ瀺çã«è¡ããŸããã ããããååçã§æ»æçãªã¢ãŒããã¯ãã£ãã§ãã
ãªãžããã¢ãŒããã¯ãã£ã¯çæçã«ã¯è¯ãã¢ã€ãã¢ã§ãããé·æçã«ã¯æªãã¢ã€ãã¢ã§ãã çæçã«ã¯ãã¿ã€ããªãã¬ãŒã ã¯ãŒã¯ã«ãããã¢ããªã±ãŒã·ã§ã³ã®æ§é ãèæ ®ããããšãªãè¿ éã«éå§ã§ããŸãã ããããé·æçã«ã¯ãããŸãã«ãå³æ Œãªã¢ãŒããã¯ãã£ãå¯èœæ§ãå¶éããŸãã èŠä»¶ã倧ãããªãã«ã€ããŠããã¬ãŒã ã¯ãŒã¯æšæºããŸããŸãç ©ããããªãå§ããŸãã
Angularã®ããã·ã/ã¢ã°ã¬ãã·ãã¢ãŒããã¯ãã£ã«ã¯ãäž¡æ¹ã®äžçã§ææªã®ãã®ãå«ãŸããŠããŸãã ã¢ããªã±ãŒã·ã§ã³ã®èšèšã«é¢ããä»®å®ãè¡ããŸããããããã®ä»®å®ã®ç解ã«ã¯åœ¹ç«ã¡ãŸããã ç§ã¯ä»ã§ããããç解ããŠãããšç¢ºä¿¡ããŠããŸããããããã§ç§ã¯äœãšãé£ãåºããŸããïŒ
ãåºæ¬çãªã¬ãã«ã§ã¯ãAngularã¯ãã¹ããŒãã¬ã¹ã®ããµãŒãã¹ããªããžã§ã¯ããããžãã¯ã«äœ¿çšããããŒã¿æ§é ã®åçŽãªãªããžã§ã¯ãïŒã¡ãœããã®ãªããªããžã§ã¯ãïŒã䜿çšããŠç¶æ ãä¿åãããšèããŠããŸãã ãµãŒãã¹ã¯åºæ¬çã«ã°ããŒãã«å€æ°ã§ãã ã»ãšãã©ã®æ©èœã¯ã©ã®ãµãŒãã¹ã§ã䜿çšã§ããç¹å¥ãªååã§ã¢ã¯ã»ã¹ã§ããŸãã ããŒã¿æ§é ã¯$ã¹ã³ãŒãã«ä¿åããããã³ãã¬ãŒããšãã£ã¬ã¯ãã£ãã«é¢é£ä»ããããŠããŸãã ããŒã¿æ§é ã®ãªããžã§ã¯ãã¯ããã³ã³ãããŒã©ãŒãïŒãã³ãã¬ãŒããšãã£ã¬ã¯ãã£ãã«é¢é£ä»ãããããæ¥çå€ãïŒããã³ãµãŒãã¹ã«ãã£ãŠå¶åŸ¡ãããŸãã
ç§ã¯ãã®ã¢ãŒããã¯ãã£ã®ãã¡ã³ã§ã¯ãããŸããã ç¶æ ãããžãã¯ããåé¢ããããšã§ãAngularã¯ã«ãã»ã«åãç Žããå¯æ¥ã«é¢é£ããæŠå¿µãåé¢ããŸãã åäœããããŒã¿ã®é£ã«ããžãã¯ãé 眮ããã®ã§ã¯ãªããAngularã¯ããžãã¯ãã¢ããªã±ãŒã·ã§ã³å šäœã«åºããããšèããŠããŸãã ã ã·ã§ããã¬ã³ã®ç ç²è ãæäœãã ããªã¹ã¯ããããŸããå€æŽãããšãå€æ°ã®å°ããªä¿®æ£ãè¡ãããŸãã
ãã¥ãŒããªã¢ã«ã®ã¢ããªã±ãŒã·ã§ã³ã¯ããã®åé¡ã瀺ããŠããŸãã ã¢ããªã±ãŒã·ã§ã³ã¯ã¹ããŒããã©ã³ã®ãªã¹ãã衚瀺ãããé»è©±ããªããžã§ã¯ãã¯éèŠãªæŠå¿µã§ãã çæ³çã«ã¯ãé»è©±ãªããžã§ã¯ãã®å éšæ§é ã®å€æŽã¯äœã«ã圱é¿ããªãã¯ãã§ãã ãã ãããããã¯åãªãããŒã¿ãªããžã§ã¯ãã§ãããããå€æŽãããšãã¢ããªã±ãŒã·ã§ã³ã®ä»ã®éšåïŒé»è©±ãªã¹ãåºåãã³ãã¬ãŒããé»è©±æ å ±åºåãã³ãã¬ãŒã ãããã³ãããã®ãã³ãã¬ãŒãã®äž¡æ¹ã®ã³ã³ãããŒã©ãŒïŒã®å€æŽãå¿ èŠã«ãªããŸãã
ç¶æ ãšããžãã¹ããžãã¯ãå«ããªãããã¡ã€ã³ãªããžã§ã¯ãã奜ã¿ãŸãã ã ããç§ã¯äœãå£ããã«å€æŽãå ããããšãã§ããŸãã ãµã³ãã«ã¢ããªã±ãŒã·ã§ã³ã§ã¯ãå€ãæã€äžå€ãªããžã§ã¯ãã«äŸåãããªãããã¡ã€ã³ã¬ã€ã€ãŒã䜿çšããŸããã Angularã®ããã·ã/ã¢ã°ã¬ãã·ãã¢ãŒããã¯ãã£ã¯ãã®ã¢ãããŒãããµããŒãããŠããŸãããAngularã®ä»®å®ãæºããããã«ã³ãŒããå€æŽããªããã°ãªããªãããšããããŸããããããã¯äžå¯èœãªäœæ¥ã§ã¯ãããŸããã§ããã ããã«æªãããšãããããŸããã
3.æ ä¿ã®è€éã-ïŒè³Œå ¥è ïŒïŒ
Angularã¯ãæ¥ãªåŠç¿æ²ç·ãšè²§åŒ±ãªããã¥ã¡ã³ãã§æåã§ãã ãããã¯ãã倧ããªåé¡ã®çç¶ã ãšæããŸãã ããã¯ããã¥ã¡ã³ãã®åé¡ã§ã¯ãªããè§åºŠã®åé¡ã§ãã ãã¶ã€ã³ãæªãã ãã§ãã ããã«ç§ãæ°ã¥ããæ¬ ç¹ã®ã»ãã®äžéšããããŸãïŒ
æŒããããæœè±¡åã èªæã§ãªããããžã§ã¯ãã§Angularã䜿çšããã«ã¯ã奥深ãã«è¡ããå éšã§ã©ã®ããã«æ©èœããããç解ããå¿ èŠããããŸãã ãããã¿ã€ãç¶æ¿ã®ãã¬ãŒã ã¯ãŒã¯ã§ã¹ã³ãŒããšãã®ä»çµã¿ãç解ããå¿ èŠããããŸãããã€ãžã§ã¹ãã«ãŒãã $ watchã$ watchCollectionãããã³$ applyã ä»ã«ããããããããŸãã
ããžãã¯ã©ã€ã³ã¯ããã¶ã€ã³ã®è²§åŒ±ãªçµ±äžæ§ãåé¿ããããšããè©Šã¿ã§ãã å€ãã®å Žåãçžäºæ¥ç¶ãããŠããããç°ãªããã¡ã€ã«ã«ããã³ãŒãã®æçã衚瀺ãããŸãã
ã©ãã§ãäžå¯è§£ãªæåã Angularã«ã¯ãã¢ããªã±ãŒã·ã§ã³ã®æååã«åã蟌ãå¿ èŠãããããã€ãã®å°ããªèšèªããããŸãã ã=ãããïŒããã= *ããã@ãã®éããç解ããæºåãããŸãã ãEãããAããããã³ãEAãã æŒç®åã|ã; ããã³ãã®ä»ã®è±¡åœ¢æåã
ãšããã©ããã®ãªãäºææ§ãªããºã åé¡ã¯ããã€ãã®æ¹æ³ã§è§£æ±ºã§ããŸããããããã®æ¹æ³ã«ã¯ãå°ãããªãããéèŠãªéäºææ§ããããŸãã ããšãã°ãã³ã³ãããŒã©ãŒã®äœææ¹æ³ã¯ããã³ãã¬ãŒãå ã®æ§æãšå€æ°ã$ã¹ã³ãŒãã«æ ŒçŽãããæ¹æ³ã«åœ±é¿ããŸãã
éããªå€±æã®åŸåã ééããç¯ããããäœãééã£ãããšãããããåå ã瀺ãããšã¯ã§ããŸããã ãAããšæžã䟡å€ã®ãããEããæžããŸãããïŒ ã¢ããªã±ãŒã·ã§ã³ãåäœãåæ¢ããŸããã
Reactã§åããŠåãã¢ããªã±ãŒã·ã§ã³ãæžãããšãã28ŸæéããããŸããã Reactã§ã®æåã®è©Šè¡ããã³ãŒãã®äžéšã䜿çšã§ãããšããäºå®ã«ãããããããç§ã¯åãã¢ããªã±ãŒã·ã§ã³ãAngular39Âœæéã§äœæããŸããã ãããã§10æéã ãã®çç±ã¯ãAngularã®é床ã®è€éãã§ãã
4.ãã¹ã-âïŒããã§ãããã§ããªãïŒ
Angularã¯ãã¹ããéåžžã«éèŠã ãšèããŠããŸãã ãã®äž»ãªæ©èœã®1ã€-äŸåé¢ä¿ã®å®è£ ïŒäŸåæ§æ³šå ¥ïŒã¯ããã¹ããç°¡çŽ åããããã«ç¹å¥ã«äœæãããŠããŸãã
ãã®çŠç¹ãèãããšãAngularã§ã®ãã¹ããããã«æªãããšããããšã«é©ããŸããã ã³ã³ãããŒã©ãŒãšãµãŒãã¹ã®ãã¹ãããžãã¯ã«çŠç¹ãåœãŠãŠããŸããããŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã®åäœããã¹ãããããšã¯ã»ãšãã©ãããŸããã ãã©ãŠã¶ãŒã€ãã³ãã®ã·ãã¥ã¬ãŒã·ã§ã³ã¯ãµããŒããããŠããŸããããŸããHTMLãã³ãã¬ãŒããåäœãã¹ãããæ¹æ³ããããŸããã ã«ã¹ã¿ã ãã£ã¬ã¯ãã£ãã¯ãã¹ãã§ããŸãããå éšã«å¥ã®ãã£ã¬ã¯ãã£ãããããã£ã¬ã¯ãã£ãããã¹ãããã®ã¯æãã§ãã
Angularã¯ãããžãã¹ããžãã¯ã®åäœãã¹ãæ©èœã«éç¹ã眮ããŠããŸãã ãã ããå¯äžã®çç±ã¯ãã¢ãŒããã¯ãã£èªäœãUIïŒç¹ã«ã³ã³ãããŒã©ãŒãšãµãŒãã¹ïŒã«ããžãã¹ããžãã¯ãé 眮ããããšãåŒãèµ·ããããã§ãã åªããã¢ãŒããã¯ãã£ã¯ãUIã«äŸåããªããªããžã§ã¯ãã«ããžãã¹ããžãã¯ãé 眮ããŸãã
Angularã®å€ãã®åŽé¢ã¯ãèªå·±ã«ããã®äžã®ãããã®ããã«æããŸãã
ã¢ããªã±ãŒã·ã§ã³ã®å Žåã®ããã«ããžãã¹ããžãã¯ãåé€ããŠããAngularãHTMLãã¬ã³ããªã³ã°ããŠã€ãã³ãã«å¿çããæ¹æ³ããã¹ãããã ãã§ãããAngularã¯ãããè¡ãããšããµããŒãããŠããŸããã§ããã AngularããŒã ã¯ãç¹å¥ã«èšèšããããšã³ãããŒãšã³ãã®ãã¬ãŒã ã¯ãŒã¯ã䜿çšããŠProtractorããã¹ãããããšããå§ãããŸãã
ãšã³ãããŒãšã³ãã®ãã¹ãã¯æéãããããè匱ã§ãã ãããã®æ°ã¯æå°åããå¿ èŠãããããã¹ãæŠç¥ã®äžå¿æŠå¿µãšããŠãããã«äŸåããªãã§ãã ããã 幞ããªããšã«ãã¢ããªã±ãŒã·ã§ã³ã®UIãã«ã¹ã¿ã ãã£ã¬ã¯ãã£ãã«é 眮ããããšã§ãAngularãåäœãã¹ãããæ©äŒããããŸããã ããã§åœŒã¯ãããã§ãããã§ããªããäžç«çãªé¡ãç²åŸããŸããããããèŠããšãå°ããªæ¶ãèŠããŸãã
5.ãµãŒããŒã§ã¬ã³ããªã³ã°-ïŒbueeeïŒïŒ
AngularJSã¯ããµãŒããŒäžã§åäœããããã«ã¯èšèšãããŠããŸããã é©ãã¯ãããŸããããæ€èšãã䟡å€ããããŸãã
çµè«ïŒé¿ããŠãã ããã
Angularã§ã®äœæ¥-èŠçã åã¹ãããã¯æ°ããæ©èœãŸãã¯ãã¹ãã§ãããã¬ãã¥ãŒã®çµãããŸã§ã«åœŒã¯æ¬åœã«ç§ãèŠã€ããŸããã ãããããAngularãæãã§ããããšããã¹ãŠè¡ãããã¶ã€ã³ãå®è£ ããããšããªãå Žåãããã¯ç§ã«ãšã£ãŠç°¡åã§ãããç§ã®ç®æšã¯ããããžã§ã¯ããé·æçã«ãµããŒãããå¯èœæ§ãæ¢ãããšã§ãããã§ããã ãæ©ããã¹ãŠãè¡ãããšã§ã¯ãããŸããã§ããã
ãã®ç¹ã§ããã¹ãŠãæªãã§ãã Angularã¯è€éãªãã¬ãŒã ã¯ãŒã¯ã§ãããå¥åŠãªãã®ã«æé·ããŸããã ããã¯äººæ°ããããŸãããè¯ããããŸãããããè¯ãéžæè¢ãçŸãããšããã«å¿ãããããšæããŸãã Angular 2ã¯ãã§ã«æºå段éã«ãããããä»æ¥Angularãåãå ¥ããããšã§ãæ°å¹Žä»¥å ã«ã¢ããªã±ãŒã·ã§ã³ãæžãçŽãããšãïŒã»ãšãã©ã®å ŽåïŒèªåèªèº«ãéé£ããŠããŸãã å°æ¥ã®ããŒãžã§ã³ã§ã¯ãããã®æ¬ é¥ãä¿®æ£ãããå¯èœæ§ããããŸãããä»æ¥ã®Angularã¯é©åãªéžæã§ã¯ãããŸããã é¿ããŠãã ããã