Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import { Component, Input, OnInit } from '@angular/core';
  2. @Component({
  3. selector: 'app-example',
  4. templateUrl: './app-example.component.html',
  5. styleUrls: ['./app-example.component.css']
  6. })
  7. export class ExampleComponent implements OnInit {
  8. @Input() local_variable: any;
  9.  
  10. constructor() { }
  11.  
  12. ngOnInit() {
  13. if (local_variable) {
  14. console.log(local_variable);
  15. }
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement