How to create an object in Angular JS

 Posted by Chvrsri on 3/18/2016 | Category: AngularJS 1x Interview questions | Views: 2473 | Points: 40
Answer:

Below is the way to create an object in Angular JS

<div ng-app="" ng-init="DnfObj={Str1:'Dotnet',Str2:'Funda'}">

String Display: <b>{{ DnfObj.Str2 }}</b></div>


Output will be: String Display: Funda


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response