returning a promise

which contains the config details of the created app/component