Created
August 8, 2019 14:45
-
-
Save koningskristof/7992c2ac365cbf5c77bde52b4d2dabeb to your computer and use it in GitHub Desktop.
futureProofComponent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class SomeComponent implements IComponentOptions { | |
bindings: any; | |
templateUrl: any = require('./some-component.html'); | |
require: any; | |
controller: any = SomeComponentController; | |
} | |
export class SomeComponentController { | |
public static $inject: Array<string> = [ | |
'someService', | |
'someOtherService' | |
]; | |
constructor(private someService, | |
private someOtherService) { | |
} | |
public $onInit(): void { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment