Reference Factory in Angular Controller

Asked

Viewed 42 times

0

Good evening, how do I instantiate Factory in Controller? I have the following error: inserir a descrição da imagem aqui

var app = angular.module('App', []);
app.controller('LoginCtrl', function ($scope, $http, LoginFactory) {...

I have the code above

  • 1

    Hello, could you post the code from factory also?

  • I managed to solve friend, still thanks :D

  • Brayan, post the solution if you deem it necessary! D

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.