Questions tagged as 'angularjs'

1
answer

JavaFX WebView does not receive 200 messages from AJAX

I'm using the Restlet library that allows you to use RESTful services without needing an external server. WebView and Browser code: public class View extends Application { public static void begin(String args[]) { launch(args); } publi...
asked by 11.12.2014 / 12:23
2
answers

Validate email with angularjs

I have the following field for email: <input type="email" class="form-control" id="email" name="email" ng-model="fields.email" required="true" /> In the div where the field is, I have the following validation: ng-class="{ 'has-error...
asked by 19.09.2014 / 00:11
2
answers

How to create multiple vectors dynamically with Javascript? [closed]

I get a value on the input screen, and I need to construct the number of arrays according to the number I received. Example: I get 64 in the input, so I need to create 64 arrays     
asked by 15.04.2016 / 21:20
1
answer

Receiving JSON with PHP via $ http.post ()

I want to read a JSON in PHP received from a function $http.post() of AngularJS, I already tried to use json_decode() and set the header (both PHP and Angular) but it did not work. PHP claims to be an undefined index, I tried to u...
asked by 25.05.2014 / 04:20
1
answer

Generate pdf with Javascript or AngularJS

Does anyone know a way to generate pdf from a page via javascript without the use of a library or at most with the use of angular JS?     
asked by 06.06.2014 / 19:24
2
answers

sum of values with ng-repeat

Good evening I'm having a problem adding values with ng-repeat object 1 COMISSAO_CORRETOR: "5.0" CPF_CONTRATO: "xxx.xxx.xxx-xx" NUMERO_CONTRATO: "1234567" VALOR_BRUTO: "70000.00" VALOR_COMISSAO: "3500.00" VALOR_LIQUIDO: "70000.00" obj...
asked by 01.09.2015 / 00:06
1
answer

Problem loading data from a table with angularjs and api rails

My front-end code: var listaDeProdutos = function(){ $http.get("http://localhost:3000/produtos").success(function(data,status){ $scope.listaProdutos = data; }).error(function(data,status){ console.log("error");...
asked by 18.09.2015 / 15:09
2
answers

How to work with AngularJS without the API being ready?

I want to make the front end of my application with AngularJS but my RESTFul API is not yet ready to be consumed, have some help returns in JSON?     
asked by 17.09.2015 / 18:48
2
answers

POST reply comes empty

service.ts: teste(user) { return this.http.post('api/home', user) } teste.component.ts: ok(user){ this.loginServ.teste(user) .subscribe(data => { let retorno = (data as any) console....
asked by 14.12.2018 / 19:53
1
answer

How to insert angular script? In simple HTML it works!

Well, my .html component looks like this: <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, title:{ text: "Monthly Expenses, 2016-17"...
asked by 12.09.2018 / 20:35