This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1> | |
| <div class="row"> | |
| <div class="col-lg-12 text-center"> | |
| <i class="fa fa-spinner fa-pulse fa-5x" ng-hide="genres.length"></i> | |
| </div> | |
| <div ng-repeat="g in genres"> | |
| <div class="col-lg-3"> | |
| <a href="#genres/{{g.list_name_encoded}}"> | |
| <div class="thumbnail"> | |
| <div class="caption"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| var app = angular.module('NYTBestSellers'); | |
| app.controller('GenresController', function ($scope, $routeParams, $http) { | |
| var url = 'http://api.nytimes.com/svc/books/v3/lists/names.json?api-key=sample-key'; | |
| $http.get(url).then(function (response) { | |
| $scope.genres = response.data.results; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body> | |
| <body ng-app="NYTBestSellers"> | |
| <!-- Header. --> | |
| ... | |
| <!-- Main content. --> | |
| <div ng-view></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| var app = angular.module('NYTBestSellers', ['ngRoute']); | |
| app.config(function ($routeProvider) { | |
| $routeProvider.when('/genres', { | |
| templateUrl: 'src/html/genres.html', | |
| controller: 'GenresController' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js"</script> | |
| <script src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-route.js"></script> | |
| <script src="src/js/app.js"</script> | |
| </head> | |
| <body ng-app="NYTBestSellers"> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| var app = angular.module('NYTBestSellers', []); | |
| }()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js"</script> | |
| <script src="src/js/app.js"</script> | |
| </head> | |
| <body ng-app="NYTBestSellers"> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.js"></script> | |
| </head> | |
| <body ng-app="NYTBookReviews"> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "creationDate":1416268800000, | |
| "language":{ | |
| "version":"1998", | |
| "codes":[ | |
| { | |
| "code":"ENG", | |
| "label":{ | |
| "EN":"English" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meDocuments":[ | |
| ], | |
| "meInstitutionalMandate":{ | |
| "legalActsAgreements":"Article I of the constitution indeed requires the Organization to collect, analyse, interpret and disseminate information relating to nutrition, food and agriculture (the term “agriculture” and its derivatives includes forestry, fisheries and aquaculture). The first session of the FAO Conference in 1945 provided the rationale: “If FAO is to carry out its work successfully it will need to know where and why hunger and malnutrition exist, what forms they take, and how widespread they are. Such data will serve as a basis for making plans, determining the efficacy of measures used, and measuring progress from time to time.” Member countries reaffirmed this mandate in 2000 when formulating the Organization’s strategic thrusts for the 2000-2015 period: Corporate Strategy E1 commits the Organization to building “an integrated information resource base, with current, relevant and reliable statistics, information and knowledge made |