ã¯ããã« Vue.jsã使ç¨ããã¢ããªã±ã¼ã·ã§ã³ã§ã®Web APIå¼ã³åºãã®ãã¶ã¤ã³ãã¿ã¼ã³ã«ã¤ãã¦èª¿ã¹ã¦ã¿ã¾ããã ãããæ¤ç´¢ãã¦åºã¦ãããã¥ã¼ããªã¢ã«ããµã³ãã«ã¯ãã³ã³ãã¼ãã³ãå ã§axiosãã¤ã³ã¹ã¿ã³ã¹åãã¦ããããVuexã®ä¸ã§axiosã使ç¨ããã¨ãããµã³ãã«ãã»ã¨ãã©ã§ããã ãããå®éã®ãããã¯ãã§ããããã¦ãã¾ã㨠ã³ã³ãã¼ãã³ãå ã§APIã¢ã¯ã»ã¹ã®ç´æ¸ãã«ãã£ã¦åä½ãã¹ããå°é£ã« Vuex(actions)ã®è¥å¤§å(使ãåããªãå¦çã¯Storeã«è¨è¿°ããªãã»ããããã¨ããæç®ããã) APIéä¿¡é¨åãPureJSã§ã¢ã¸ã¥ã¼ã«åãã¦ãä¾å度ãã¤ãã¤ãä¸ãããªãï¼ã³ã³ãã¼ãã³ãã§ã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãããããï¼ã ãªã©ãªã©åé¡ã«ãªããã¨ãå¤ããã§ããã ããæ¥ãJorgeæ°ãæ稿ãããVue API calls in a smart wayãã¨ããè¨äºã«ãã©ãçãã¾ããã
{{#tags}}- {{label}}
{{/tags}}