Answers for "angular typescript tutorial"

1

typescript tutorial

var message:string = "Hello Worl" 
console.log(message)
Posted by: Guest on August-05-2021
0

basic of angular typescript

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
}
Posted by: Guest on March-02-2022
1

typescript tutorial

//Generated by typescript 1.8.10
var message = "Hello World";
console.log(message);
Posted by: Guest on May-20-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language