DIã¨ã¯ DIï¼Dependency Injectionï¼ã¨ã¯ãæ¥æ¬èªè¨³ã§ä¾åæ§ã®æ³¨å ¥ã§ããä¾åæ§ã®æ³¨å ¥ã¨èãã¨ãä¾åæ§ã¨ããæ½è±¡çãªæ¦å¿µãä½ãã«æ³¨å ¥ãããããªå°è±¡ãä¸ãã¾ãããä¾åæ§ã¨ããè¨èèªä½ã¯ä¾å対象ã表ãã¾ãã DIã«ãããä¾å対象ã¯ããªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹ã§ããã¤ã¾ããDependencyã¯ãªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹ãæãã¾ããããã¦ãInjectionã¯å¤é¨ããæ¿å ¥ããã¨ããæå³ãæã¤ãããDIã¯ãªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹ãå¤é¨ããæ¿å ¥ããã¨ããäºã«ãªãã¾ãã DIã®ã³ã¼ã DIã®å¯¾å¿åå¾ã®ãµã³ãã«ã³ã¼ãã§æ¯è¼ã確èªãã¾ãã次ã®ã³ã¼ãã¯ããã©ã¦ã¶ã®ã³ã³ã½ã¼ã«ã«ãSaved yamada!ãã¨åºåãã¾ããå®ç¨æ§ã¯ãªãã³ã¼ãã§ãã DI対å¿å import User from './user' export default class Database { saveUser(
{{#tags}}- {{label}}
{{/tags}}