Basic of Winkeltypskript

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
})
export class AppComponent {
  title = 'first';
  //function in class:
  getname() {
    return this.title;
  }
  //object:
  obj = {
    fname: 'hey',
    lname: 'there!',
  };
  //array:
  arr = ['php', 'java', '.net'];
  a=12;
  b=4;
  Url=window.location.href
}
30_Savaliya Denish