Created
September 29, 2015 00:44
-
-
Save mnsmarcelo/2b669886ddf486274ab8 to your computer and use it in GitHub Desktop.
This file contains 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
var listApp = angular.module('listApp', []); | |
listApp.controller('mainController', function($scope,$http){ | |
$scope.titulo = 'Produtos'; | |
$http.get('json.php').success(function (data) { | |
$scope.produtos = data.produtos; | |
}).error(function (data, status, headers, config) { }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment