refactor(template): update Inject decorator

This commit is contained in:
Daniel Sogl 2019-02-20 17:40:13 +01:00
parent 8b53c04dc5
commit c5ae6362d7
2 changed files with 6 additions and 2 deletions

View File

@ -43,7 +43,9 @@ import { Observable } from 'rxjs';
installVariables: [], // OPTIONAL the plugin requires variables installVariables: [], // OPTIONAL the plugin requires variables
platforms: [] // Array of platforms supported, example: ['Android', 'iOS'] platforms: [] // Array of platforms supported, example: ['Android', 'iOS']
}) })
@Injectable() @Injectable({
providedIn: 'root'
})
export class {{ PluginName }} extends IonicNativePlugin { export class {{ PluginName }} extends IonicNativePlugin {
/** /**

View File

@ -43,7 +43,9 @@ import { Observable } from 'rxjs';
installVariables: [], // OPTIONAL the plugin requires variables installVariables: [], // OPTIONAL the plugin requires variables
platforms: [] // Array of platforms supported, example: ['Android', 'iOS'] platforms: [] // Array of platforms supported, example: ['Android', 'iOS']
}) })
@Injectable() @Injectable({
providedIn: 'root'
})
export class {{ PluginName }} extends IonicNativePlugin { export class {{ PluginName }} extends IonicNativePlugin {
/** /**