Questions tagged as 'angularjs'

1
answer

How to send data from AngularJS to an ASP.NET MVC backend?

What would be the best and simplest alternative? I have the Web Api: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Generico.Dominio; using Generico.A...
asked by 04.01.2016 / 02:12
2
answers

Is it possible to use ng-model with contenteditable?

I need to use a div with the contenteditable attribute and the result of that precise value put in a ng-model . I did so, but it does not seem to be working as expected: <div contenteditable ng-model="observacao"></di...
asked by 28.12.2017 / 15:44
1
answer

How to check if a file is an image?

I'm working on an application using ASP.NET MVC and AngularJS and need to ensure that the file upload will be just image files, even if someone sends an extension of another type of ".jpg" for example. I'm getting a MultipartFileData in the...
asked by 22.06.2017 / 15:37
1
answer

Using WYSIWYG editor with angle

I'm starting my studies now with angularJS. Well, I'm trying to add a WYSIWYG editor (" What You See Is What You Get "). to my script using angular 1.6.1 but I'm not getting the desired result. There is this in the OS where they list a c...
asked by 05.02.2017 / 17:39
1
answer

Why do some angular services use a dollar sign ("$") at the beginning?

I used some libraries written for AngularJS where Services were always written with a $ at first. For example, in the Angular Material we have the service $mdDialog , and in Angular Bootstrap we have the $uibModal . I al...
asked by 09.02.2017 / 14:13
3
answers

How to pass value changed dynamically to function, in AngularJS

The itemCode, itemDescription, itemPreco, and itemQuantity fields are populated dynamically (at run time, without refresh ) from a query performed in the database. However, these values, when passed as a parameter to the addItem () function, re...
asked by 20.12.2016 / 13:25
1
answer

Do I really need to have the src and ng-src attributes in the IMG tag? What is the function of each?

I saw here that we have the creation of tag <img> with the attributes src and ng-src . Do you really need to be like this? Even more than here the two attributes have the same value.     
asked by 20.12.2016 / 16:48
1
answer

how to avoid multiple function calls in the view?

Using Angular, in my controller I have a function that calculates the amount of filtered items. So: $scope.totalConferenciasRestantes = function () { return $scope.solicitacoes.data.filter(function (solicitacao) { return solici...
asked by 20.02.2017 / 17:47
1
answer

Good practices for changing $ scope variables

Here is an example code: Controller: $scope.filterText = {status: 'Todos', tipo: 'Todos'}; $scope.params = {page: 1, total: 10, orderBy: 'id', sort: 'desc', search: {status: '',tipo: ''}}; $scope.filterStatus = function(status, text) {...
asked by 11.01.2017 / 14:14
1
answer

Debug with min files in AngularJS

I created a task in Grunt to automatically concat and uglify in my files .js of the Angular to improve the performance and also not to be inserting a new file every time I create a controller, for example. However, wi...
asked by 17.01.2017 / 15:00