Last active
August 1, 2020 16:41
-
-
Save rexar1988/80fc4313c89ab4373b2773311a3d385a to your computer and use it in GitHub Desktop.
This file contains 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
import '...'; | |
@Component({ | |
selector: 'app-ng-template', | |
templateUrl: './ng-template.component.html', | |
styleUrls: ['./ng-template.component.scss'] | |
}) | |
export class NgTempalateComponent implements OnInit { | |
context = { | |
myFirstName: 'John Doe', | |
greeting(name) { | |
alert(`Hello! ${name}`); | |
} | |
}; | |
constructor() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment