Questions tagged as 'angularjs'

2
answers

How to fill a select dynamically, AngularJS?

I am filling out a selection of the departments of a company in the following way: $scope.selectize_a_data = { options: [ { id: 1,...
asked by 23.03.2017 / 06:44
3
answers

is it possible to put the ng-click directive within a span or a?

I have the following code: <span ng-if="contacto">Teléfono: <a href="TEL://{{contacto.telefono}}">{{contacto.telefono}}</a> <m ng-if="contacto.extension"> Ext: <a ng-repeat="ext...
asked by 30.12.2016 / 18:21
1
answer

Convert base64 image to "input file"

Good morning, I'm making an application in angular that picks up a drawing made in canvas and then upload it as a png image to the server. This is my function: $scope.signContract = function(){ var canvas = document.getElementById("p...
asked by 10.03.2017 / 12:27
1
answer

Filter in ng-repeat does not work as expected

I have the following JSON: [{ "IdModulo": 1, "IdPadre": 0, "Nombre": "Home", "Ruta": "menu.home", }, { "IdModulo": 2, "IdPadre": 0, "Nombre": "Administrador", "Ruta": "menu.administrador" }, { "IdModulo": 3,...
asked by 05.03.2018 / 22:15
1
answer

CORS 'Access-Control-Allow-Origin' in Angularjs

I'm trying to get data from this url: link but when I show the results I get this error: Request from another blocked source: the same source policy prevents reading the remote resource at link (reason: the CORS header 'Access-Control-...
asked by 22.11.2016 / 06:19
1
answer

How to get an answer using ngResource

I have a controller with which I could ( finally ), save a record in my database, which is this: function PuestoAddController(puestosService, puesto){ var self = this; var _puesto = puesto; function _add(_puesto){ consol...
asked by 24.11.2016 / 21:02
3
answers

Use driver without $ scope

angular.module('App') .config(function ($stateProvider) { $stateProvider .state('solicitud', { url: 'solicitud', controller: 'SolCtrl as sol', templateUrl: '/scri...
asked by 18.11.2016 / 08:28
2
answers

how to parse angularjs data

It turns out that I make this request in the controllers to my php: $http({ method: 'POST', url: 'http://localhost/nPanelarencion/app/php/consulta.php', headers: { 'Content-Type': 'application/json', 'Accept': 'application...
asked by 20.10.2016 / 21:32
2
answers

Tomcat can not find the resources

Well I have an application with AngularJS that makes requests to the %% %% API as an example to learn how to use AngularJS, but the problem is that when I put the page with all the dependencies in a% Java% (this is what I do because I need to us...
asked by 18.09.2016 / 07:54
2
answers

pass variable from html to controller in angularjs

Hello, everyone presented a new challenge and I need help from you, it turns out that I need to send a data to the controller to use it: <div ng-repeat="model in modulos track by $index"> <div style="float:left; paddi...
asked by 19.12.2016 / 20:51