Skip to main content

One way binding in Angular

One way binding in angular is used set or get the data from html controls, here lets see how to get the value from Textbox on button click and show the same in some span.





import { Component} from '@angular/core';
@Component({
  selector: 'app-root',
  styleUrls: ['./app.component.css'],
  template: ``
})
export class AppComponent {
  userEneteredText :string;

  showData(value :string){
    this.userEneteredText=value;
  }
}



Comments

  1. This is an unprecedented article, Given such a great deal of information in it, I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.
    Game Toon Cup 2017 Break The Cup For boy best game Battle for the Galaxy

    ReplyDelete
  2. Success is failure turned inside out - The silver tint in the clouds of doubt, and you never can tell how close you are, it might be near when it seems afar; So stick to the fight when you're hardest hit - It's when things seem worst that you must not quit.
    kizi 2 player racing games
    Jogo para criança
    play friv Games

    ReplyDelete
  3. it's very interesting, Thanks for sharing a valuable information to us & Knowledgeable also, keep on sharing like this.
    Best Aviation Training Institute in Chennai

    ReplyDelete
  4. Great Article. Thank you for sharing! Really an awesome post for every one.

    IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
    Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai

    ReplyDelete

Post a Comment