0

I have an angularjs module as below ( the controller )

'use strict';

angular.module('app.controllers', [])

# overall control
.controller('AppCtrl', [
    '$scope', '$location'
    ($scope, $location) ->
        $scope.isSpecificPage = ->
            path = $location.path()
            return _.contains( ['/404', '/pages/500', '/pages/login', '/pages/signin', '/pages/signin1', '/pages/signin2', '/pages/signup', '/pages/signup1', '/pages/signup2', '/pages/lock-screen'], path )

        $scope.main =
            brand: 'ABCD'
            name: 'Brand'

])

I want to make a rest call and get result JSON , does anyone have idea , how to do this ?

Buminda
  • 611
  • 8
  • 15

0 Answers0