Template in Angular || Angular Fundamentals

In this video,I explained template in Angular. Feel free to comment. For more, please subscribe and press the BELL icon. Please visit my Angular Playlist. Please visit my YouTube Videos. The code is as follows -

ts file - 
import { Component } from '@angular/core';

@Component ({
  selector: 'courses',
  template: '<h1> {{ "Title is : - " + title}} </h1>  <p>  {{ getDetails() }} </p> {{ "Channel Name is:- " + getName() }}'
})

export class CoursesComponent {
   title = "List of Subjects";

   details = "I Love Angular";

   name = "WebGuru";

   getDetails() {
     return this.details;
   }

   getName() {
     return this.name;
   }
}



Comments

Popular posts from this blog

Alert Dialog Box in JS || JavaScript Dialog Box

HTML - Frameset Tag in html

Indian Flag || Indian Flag using HTML CSS