Working with JSON

 

<DOCTYPE html>
<html>
    <head>
        <meta CHARSET="UTF-8">
        <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
    </head>
    <body ng-app="myApp" ng-controller="myCtrl">
        <h2>JSON</h2>
        <fieldset>
            <legend>
                String
            </legend>
            <div ng-init='name = {"first_name":"Shailesh", "last_name" : "Sonare"}'>
                {{name.first_name}} <br/>
                {{name.last_name}}
            </div>
        </fieldset>
        <fieldset>
            <legend>
                Numbers
            </legend>
            <div ng-init='months = {"jan": 1, "feb" : 2}'>
                {{months.jan}} <br/>
                {{months.feb}}
            </div>
        </fieldset>
        <fieldset>
            <legend>
                Objecs
            </legend>
            <div ng-init='result = {employee:{"name": "Shailesh", "age" : 28}}'>
                {{result.employee.name}} <br/>
                {{result.employee.age}}
            </div>
        </fieldset>
        <fieldset>
            <legend>
                Array
            </legend>
            <div ng-init='result = {employee:[{"name": "Shailesh", "age" : 28},{"name": "Mahesh", "age" : 26}]}'>
                {{result.employee[0].name}} <br/>
                {{result.employee[1].age}}
            </div>
            <div ng-init='result2 = {months:["Jan","Feb"]}'>
                {{result2.months[0]}} <br/>
                {{result2.months[1]}}
            </div>
        </fieldset>
    </body>
    <script>
        var app = angular.module("myApp", []);
        app.controller("myCtrl", function($scope) {

        });
    </script>
</html>

 

 

41 Replies to “Working with JSON”

  1. My spouse and I stumbled over here coming from a different page and thought I should check things out. I like what I see so now i am following you. Look forward to looking over your web page repeatedly.

  2. It’s appropriate time to make some plans for the long run and it is time to be happy. I’ve learn this submit and if I may I wish to recommend you few fascinating issues or advice. Perhaps you could write next articles relating to this article. I desire to read more issues approximately it!

  3. I don’t even know how I ended up here, but I thought this post was good. I don’t know who you are but certainly you’re going to a famous blogger if you are not already 😉 Cheers!

  4. It’s not my first time to pay a quick visit this web page, i am visiting this website dailly and get fastidious information from here all the time.

  5. It’s remarkable to pay a quick visit this website and reading the views of all friends regarding this post, while I am also zealous of getting experience.

  6. For those seeking an exceptional online gaming experience, us.com](https://maxispin.us.com/) stands out as a premier destination. At Maxispin Casino, players can enjoy a vast array of pokies, table games, and other thrilling options, all accessible in both demo and real-money modes. The casino offers attractive bonuses, including free spins and a generous welcome offer, along with cashback promotions and engaging tournaments. To ensure a seamless experience, Maxispin provides various payment methods, efficient withdrawal processes, and reliable customer support through live chat. Security is a top priority, with robust safety measures and a strong focus on responsible gambling tools. Players can easily navigate the site, with detailed guides on account creation, verification, and payment methods. Whether you’re interested in high RTP slots, hold and win pokies, or the latest slot releases, Maxispin Casino delivers a user-friendly and secure platform. Explore their terms and conditions, read reviews, and discover why many consider Maxispin a legitimate and trustworthy choice in Australia.
    The platform provides state-of-the-art tools to create unique and captivating text content.

    **Features of MaxiSpin.us.com**
    One of the standout features of MaxiSpin.us.com is its ability to generate content in multiple languages.

    **Benefits of Using MaxiSpin.us.com**
    This conservation of time and resources allows businesses to concentrate on other vital areas of their operations.

  7. You can definitely see your skills within the work you write. The world hopes for even more passionate writers like you who aren’t afraid to say how they believe. At all times go after your heart.

  8. Hello! Do you know if they make any plugins to safeguard against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?

  9. Hmm is anyone else encountering problems with the pictures on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog. Any feed-back would be greatly appreciated.

  10. You’ve made some good points there. I checked on the net to find out more about the issue and found most individuals will go along with your views on this web site.

  11. I have been browsing online greater than three hours lately, but I never found any attention-grabbing article like yours. It’s lovely value sufficient for me. In my opinion, if all website owners and bloggers made just right content as you did, the web can be a lot more useful than ever before.

  12. I’ve read some just right stuff here. Certainly value bookmarking for revisiting. I wonder how so much attempt you place to make such a great informative website.

  13. I was recommended this website by way of my cousin. I’m not certain whether this post is written via him as nobody else know such unique about my trouble. You’re incredible! Thanks!

  14. Hey would you mind sharing which blog platform you’re using? I’m looking to start my own blog in the near future but I’m having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something unique. P.S Sorry for getting off-topic but I had to ask!

  15. Nice blog here! Also your web site so much up fast! What web host are you the use of? Can I get your affiliate hyperlink on your host? I want my web site loaded up as quickly as yours lol

  16. great publish, very informative. I’m wondering why the other specialists of this sector don’t understand this. You must continue your writing. I’m confident, you’ve a great readers’ base already!

  17. May I simply just say what a comfort to discover someone that genuinely understands what they are talking about on the net. You actually realize how to bring a problem to light and make it important. More people have to read this and understand this side of the story. I was surprised you aren’t more popular because you certainly possess the gift.

  18. Asking questions are really nice thing if you are not understanding something totally, except this paragraph presents good understanding even.

  19. Hello! I’ve been reading your site for some time now and finally got the bravery to go ahead and give you a shout out from Huffman Texas! Just wanted to say keep up the excellent work!

  20. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something enlightening to read?

  21. В этом информативном обзоре собраны самые интересные статистические данные и факты, которые помогут лучше понять текущие тренды. Мы представим вам цифры и графики, которые иллюстрируют, как развиваются различные сферы жизни. Эта информация станет отличной основой для глубокого анализа и принятия обоснованных решений.
    Изучить вопрос глубже – https://vivod-iz-zapoya-2.ru/

Leave a Reply to poplottery Cancel reply

Your email address will not be published.