Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
app = angular.module('app', []);
app.controller("NavCtrl",function($scope,$http){
var serviceBase = 'api/v1/';
$http.get(serviceBase + 'categories').then(function (results) {
$scope.categories = results.data;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.