Questions tagged as 'angularjs'

0
answers

Validate Image in typeScript or JavaScript

I'm doing a form to collect user data in a web application, in which you can add an avatar through a input file . This I have limited to accept only files with extensions corresponding to images but my doubt lies in that I can create a fil...
asked by 02.11.2018 / 18:22
1
answer

CORS in Symfony 3 and Angular js

I made an Api with symfony, in which I define all the necessary headers. From Angular it is from where I consume the symfony api, the connection with my Api since angular is normal in all the requests, at no time I get an error by the CORS. The...
asked by 02.11.2018 / 16:28
0
answers

Can you traverse the fix of a Rest API with a foreach to get a field in a table specific in angularjs?

This is the code that I have until now. app.controller('obtener', ['$scope', '$http', function($scope, $http){ $http.get('http://192.168.1.31:8090/api/ITRH_REQUISITION/').then(function(resolve){ $scope.nombres = resolve.data...
asked by 07.11.2018 / 14:51
0
answers

Not working UI-GRID AngularJS

I'm trying to make a table that can be sorted, in AngularJS with ui-grid. The html code is this: <div class="ui-grid" ui-grid="$ctrl.gridOptions" ui-grid-pagination ui-grid-resize-columns ui-grid-auto-resize></div> In the js, th...
asked by 25.10.2018 / 10:13
0
answers

Validate inputs type Email are equal AngularJs

I am trying to validate that a input type email is equal to the other but I have not been able to achieve it, is it possible to validate it from the view? var app = angular.module('myApp', []); app.controller('myCtrl', function($...
asked by 18.10.2018 / 15:58
0
answers

How to enable PDF and Excel button for datatables

I am using datatable with AngularJS and I have a problem which is that the PDF button and to export Excel are not displayed, while others such as Print and Copy work correctly. Here's the js code where I define the buttons I want to use...
asked by 17.10.2018 / 00:17
0
answers

Angular autocomplete

I have the following: index.html <input type="text" ng-model="filter" ng-change=""/> controller.js $scope.loadFilter= function(cadena) { AppService.loadFilter(cadena) => esto ya me devuelve el filtrado } I need that wh...
asked by 16.10.2018 / 13:32
1
answer

How to correct not 'Access-Control-Allow-Origin', Laravel and AngularJS?

I am making a form to create users, in this form I send a photo of the user. I have made the method in Laravel and to test the route for the creation of user and with image in postman does not generate any problem to me, the registry is created...
asked by 15.10.2018 / 02:07
0
answers

Why can not I use $ scope angularjs?

I have this code, and I am sending an alert, but what is inside $ scope does not work. Why will it be? angular.module('myApp', []).controller('Ctrl', WineCtrl, ['$scope', function($scope){ alert() }]); function WineCtrl() { var s...
asked by 11.10.2018 / 23:48
0
answers

How can I match the value of a slider range to an angularj variable?

What I want is to match: the maximum and minimum value of the slide to the variable to filter filterModelMin.precio. I did it this way but it throws me an error. <rzslider rz-slider-model="slider.minValue" rz-slider-high="slide...
asked by 13.10.2018 / 00:57