Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Typescript Variable Declaration in Angular

We can declare the different type of variable in angular it supports following type of data.

  1. Introduction
  2. Boolean
  3. Number
  4. String
  5. Array
  6. Tuple
  7. Enum
  8. Any
  9. Void
  10. Null and Undefined
  11. Never
  12. Object    
  13. Complete Program of Angular JS typescript

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

  selector: 'app-sharukh',
  templateUrl: './sharukh.component.html',
  styleUrls: ['./sharukh.component.css']
export class SharukhComponent implements OnInit {
  constructor() {
    this.s= "hello"
    this.s= 'hi'
    this.s1 = `${ this.s } ram is going to market`
    this.arr = [11,23,34,56,67]


  ngOnInit() {



html code
<p>sharukh not works!</p>

Post a Comment

POST Answer of Questions and ASK to Doubt

Previous Post Next Post