AngularJSã§ãã¡ã¤ã«ãã¢ãããã¼ãããããç»åã®å ´åã¯ã¢ãããã¼ãåã«ãã¬ãã¥ã¼ããããï¼è¿½è¨ï¼ããã«ãã©ãã°ã¢ã³ãããããã«ã対å¿ï¼ã ç§ã®æ¸ãæ¹ãæªãã®ã§ããããã©ãAngularã ããç¹ã«æ¥½ã£ã¦ãã¨ã¯ãªããªãã¾ããç´ ç´ã«ng-file-upload使ãã°ããã®ã ãããã©ã ###åæç¥è <input type="file">ã®ãã¡ã¤ã«ï¼åï¼ã¯æ¨æºãã£ã¬ã¯ãã£ãã§ã¯åå¾ã§ããªãã FormDataãå©ç¨ãã¦ããã¤ãmultipart/form-dataã§éãã ã¤ã¾ããã«ã¹ã¿ã ãã£ã¬ã¯ãã£ããå®ç¾©ããå¿ è¦ãããã ###HTMLï¼ããã³ãï¼ ã½ã¼ã¹ã¯å°ã é·ããããã£ã¦ãããã¨ã¯è³ã£ã¦ã·ã³ãã«ãè¦æã¯ã«ã¹ã¿ã ãã£ã¬ã¯ãã£ãã®ã¨ããã ãã£ã¬ã¯ãã£ãåã¯ãã£ã¡ã«å½¢å¼ã-ã¨ãã«å¤ããï¼hogeFooã¯hoge-fooã¨ãããã£ã¬ã¯ãã£ãåã«ãªãï¼ DOMããscopeã¸ã®å¤ã®ç´ä»ã
æ¦è¦ Angularã®æ¨æºã®directiveã§ããng-clickã«ãè¿ãå¤ãpromiseã®å ´åã«è§£æ±ºãããã¾ã§ã¯ãªãã¯ãé²æ¢ããæ©è½ãä»ãã¦ã¿ã¾ãã (ãã¿ã³ãæ¼ããã1ç§éã¯ãªãã¯ãç¡å¹åããããã¢)ã ã¨ã¦ãç°¡åã«å®è£ ã§ããã®ã§ã¡ãã£ã¨ç´¹ä»ãã¦ã¿ã¾ãã å®è£ ã¨ããããå ã®å®è£ ãè¦ã¦ã¿ã¾ããã(githubã®ã½ã¼ã¹)ã // 以ä¸compileé¨åã®ã¿æãåºã compile: function($element, attr) { // å ·ä½çãªdirectiveNameã¯"ngClick"ã§ng-click="hoge()"ã®hoge()é¨åãé¢æ°ã¨ãã¦ãã¼ã¹ãã var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true); return function
$scopeã®ã¤ãã³ãéç¥é¢é£ã®é¢æ°ã¯ä»¥ä¸ã®3ã¤ããã Scope#$emit æ´¾çå ã«åãã¦ã¤ãã³ããéä¿¡ï¼èªèº«ãå«ãï¼ Scope#$broadcast æ´¾çå ã«åãã¦ã¤ãã³ããéä¿¡ï¼èªèº«ãå«ãï¼ Scope#$on ã¤ãã³ããåä¿¡ ãªãã¡ã¬ã³ã¹ https://code.angularjs.org/1.4.7/docs/api/ng/type/$rootScope.Scope#$on $emitã¨$on $emit $emitã¯èªèº«ã¨æ´¾çå ã«åãã¦ã¤ãã³ããæãã¾ã ã¤ãã³ããåºå¥ããããã®ååã¨æ¸¡ããããã¼ã¿ãæå® $emit(name, args); $on $onã¯ã¤ãã³ããåãåãã¾ã $onã¯ã¤ãã³ãåã¨ã¤ãã³ããåãåãã³ã¼ã«ããã¯ãæå® $on(name, listener); ã³ã¼ã«ããã¯ã¯eventã¨ãã¼ã¿ãåãåãäºãå¯è½ function(event, ...a
We are having an issue with a regular <select> dropdown located inside a modal used by an Angular component. This previously worked, but now with the upgrade to Chrome 47 does not anymore -- there are absolutely no errors generated on the javascript console, it is completely silent. Moving the dropdown outside of the modal into a regular page works, so it is specifically related to being located i
ãã¬ã¼ã ã¯ã¼ã¯å¯¾æ±ºï¼Angular VS Reactä»®æ³ããã«ãã£ã¹ã«ãã·ã§ã³ åå· å¾¹ ç¹éä¼ç»ãã¢ããªã±ã¼ã·ã§ã³ã¢ã¼ããã¯ãã£æåç·ãã§ã¯ããã¾ãã¾ãªè¦ç¹ããã¢ããªã±ã¼ã·ã§ã³ã¢ã¼ããã¯ãã£ãã¨ãã¹ãã¼ããã¡ã«èªã£ã¦ããã ãã¾ããä»åã¯ãä»è©±é¡ã®AngularJSãªã©ã®JavaScript MVCãã¬ã¼ã ã¯ã¼ã¯ã®å°é ã¨é²åãããã¦æ°ããã¢ã¼ããã¯ãã£ã§ããFluxã¨ãã®ãã¬ã¼ã ã¯ã¼ã¯ã§ããReactãªã©ã«ã¤ãã¦ãæ¢ã«å è¡ãã¦å¦ãã§ããã¨ãã¹ãã¼ããã¡ã«ãã®ç¥è¦ãèãã¦ã¿ã¾ããã ä»åã¯ãã¬ã¼ã ã¯ã¼ã¯å¯¾æ±ºã¨ãããã¨ã§ãã¨ãã¹ãã¼ããã¡ãAngularã¨Reactã¨ããé£å¶ã«åãããããããã®ãã¬ã¼ã ã¯ã¼ã¯ã«ã¤ãã¦çåç¹ãã¶ã¤ããããè°è«ãããããä»®æ³ããã«ãã£ã¹ã«ãã·ã§ã³ã¨ããå½¢å¼ã§ãä¼ããã¾ããåãªãããã«ãã£ã¹ã«ãã·ã§ã³ã¨ã¯éã£ã¦ããã¼ã¯ã¼ãã¯ãããã¬ã¹ãã§ããã¾ãããã®æãåããdi
å é±ãç§ãã¡ã¯Webãµã¤ããæ¤ç´¢ã¨ã³ã¸ã³åãã«ã¤ã³ããã¯ã¹ä»ãã§ããããã«ãããã¨ãã¦ãã¾ããããã®è¨äºã§ã¯ãç§ãã¡ãWebãµã¤ããæ¸ãç´ãã¦ãã¦å¦ãã ãã¨ã®è¦ç´ãç´¹ä»ãããã¨æãã¾ãã èæ¯ 2ãµæåã« RisingStack.com ãä½æããæãç§ãã¡ã¯ãã®Webãµã¤ãã§ã©ããªãã¯ããã¸ã使ãã決ããªãã¦ã¯ãªãã¾ããã§ãããã¤ãã³ãã追跡ããéçãªãã¼ã¸ãæ°ãã¼ã¸ããã ãã ã£ãã®ã§ãã¨ã¦ãç°¡åã§ããããç§ãã¡ã¯Webãµã¤ããã¹ã±ã¼ã©ãã«ã§ã§ããã ãé«éãªã¾ã¾ã«ãã¦ããããã¨èãã¦ãã¾ããã ç§ãã¡ã®ãã¼ã 㯠AngularJS ã®çµé¨ãè±å¯ãªã®ã§ãããã³ãã¨ã³ãã«Angularãé¸ã¶ã®ã¯å¦¥å½ã ã¨æããã¾ããã ãã®è¨äºã¯ReactãAngularJSãã©ã¡ããä¸æ¹ããåªãã¦ããçç±ã«ã¤ãã¦è¿°ã¹ã¦ããããã§ã¯ãªãã®ã§æ³¨æãã¦ãã ãããã©ã¡ãããããã¯å¸¸ã«ã¦ã¼ã¹ã±ã¼ã¹æ¬¡ç¬¬ã§ãã âAng
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}