Angular First Program

Angular JS

Hello World Program in Angular JS:

<html ng-app>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js"></script>
    <body>
        <label class="lblcolor">Your name: </label>
        <input type="text" ng-model="name" placeholder="What's your name?"/>
        <h2 class="hcolor">Hello Your Name {{name}}.</h2>
    </body>
</html>


css file:

 .lblcolor{
  color:red;
  font-size:200%;
}
.hcolor{
  color:lightblue;
}

See This on Codepen link: http://codepen.io/kathiravankathir/pen/oLAjrg

Comments

Popular posts from this blog

Angular UI Grid To Bind JSON Data

Difference between ASP.NET MVC and ASP.NET Web API

String split equal parts and reverse the string in c#