Questions tagged as 'angularjs'

2
answers

Problem putting a background image in only one view

I have a small system in Angular where I have a login screen: But when I try to put a background image the result is not as expected: I'mdoingthefollowing:<divclass="background"> ../Código da página </div> CSS: .background{...
asked by 13.10.2015 / 14:32
2
answers

Consuming Json with AngularJS

I'm trying to access a EndPoint through AngularJS. This is my Service: angular.module('empresa-view') .factory('empresaService', ['$resource', function ($resource) { return $resource($SERVICES_CONTEXT + 'empresa/:params',...
asked by 11.09.2015 / 15:19
1
answer

Angular.js $ setValidity onLoad Page

Scenery: I have a form with 3 steps, a jsp for each step. In a given jsp there is a input text with the directive ng-minlength and a onChange that calls a function that validates with $setValidity if the value...
asked by 05.05.2015 / 15:27
1
answer

When to Use Factory AngularJS

Hello everyone, good night, I wanted to know two things the first is when I should use the factory directive and the other is if for example inside a factory I can make an Ajax request and return the result of it in a method of my factory, so...
asked by 20.02.2015 / 03:53
1
answer

Error requesting Ajax (Get) AngularJS

I'm having a problem when I make a GET pro server request. My factory always returns an empty object, when it should not. Then my server (localhost:8080/av1/listarCarroEstoque) whenever requested returns me the following JSON: [...
asked by 23.02.2015 / 03:25
1
answer

$ http angularjs return not expected

Description I'm implementing a $ http request with angular. I want to return the objects from the database. Code CompanyService.coffee angular.module('vaultfactor').factory 'CompanyService', ($http, $q) -> getCompanies: -> p...
asked by 27.11.2014 / 13:38
1
answer

User and password appear on console after POST

The code below makes a POST of the data entered by the user in the login. $http.post('api/v1/login', object).then(function (results) { return results.data; }); Notice that I pass as an object an parameter that contains the data entered...
asked by 31.10.2014 / 17:26
3
answers

Using non-angular find

I'm studying angular and I'm having a problem. I created a directive called action, I'm trying to get the click on the element ul > but it does not work using find and I can not put ng-click because it may contain N tags ...    Example...
asked by 24.03.2015 / 20:21
3
answers

AngularJS error templateUrl can not find html file

PROBLEM I'm having a minification problem in my project when it calls the templateUrl in the route, I'm using grunt to generate my build. In my development environment it works fine, it only has this error in my build. Search I searched...
asked by 24.07.2014 / 23:32
1
answer

Error using $ http AngularJS

I'm trying to call the $ http method of AngularJS to get information from a REST WebService, but the following error appears: Error: [$injector:modulerr] http://errors.angularjs.org/1.2.23/$injector/modulerr?p0=contatosApp&p1=%5B%24injecto...
asked by 07.09.2014 / 21:53