Questions tagged as 'angularjs'

1
answer

I need to pass this code to angularjs. Someone knows how to help me.

Does anyone know how to pass this to angular? $(document).on( 'keydown', function(e) { if (e.ctrlKey && e.altKey && e.which === 83) { $(".btnSalvarRegistro").click(); } ); Please help...
asked by 09.03.2018 / 17:31
1
answer

doubts with single page application of angular [closed]

I'm a beginner with the single page, and I wonder if I need a server to run my webpage that I'm creating with single page? if so what is the best server to use?     
asked by 08.04.2017 / 02:31
1
answer

create PHP REST service [closed]

Good morning. I need to create a REST API in PHP on the backend and in the frontend show this data with angularjs. backend: REST API in PHP brings database data. frontend: angular js consumes the service and makes available in html 5....
asked by 11.05.2016 / 15:31
1
answer

Problem to get the text attribute of a select2

I can not get the selected text attribute in select2 , I can only get the id. <div class="col-sm-3"> <input type="text" ui-select2="comboPasta()" ng-model="item.nomePasta" placeholder="Selecione"> </div> My javasc...
asked by 02.03.2017 / 16:20
1
answer

Send image via POST to angularjs

HELP. I'm trying to send an image to a web service via POST. in postman I tested it and it worked InmycontrollerIdidso$scope.upload=function(files){varfd=newFormData();fd.append('imagem',files[0]);midanaAPI.cadastrarImagem(fd).success(function(...
asked by 07.03.2017 / 22:21
2
answers

Angular + JSON: Return does not appear in table

Hello everyone. I am studying and doing some programming tests with PHP + AngularJS. I looked at everything, but I could not print the PHP-generated array in a html table. Can anyone help me? I will be very grateful! The code is below....
asked by 16.10.2016 / 17:43
1
answer

Create advanced route in Angular.js

I'm trying to make my router , work a little differently. Today it looks like this, for example: $routeProvider. when('/cliente', { templateUrl: '/cliente', }). when('/login', { templateUrl: '/usuario/login', }). when('/home', {...
asked by 22.09.2014 / 18:15
1
answer

Messages do not appear on the screen using Angular

I'm finalizing a messaging app, however, I'm not able to make the messages appear on the screen. HTML: <div class="card" ng-repeat="mensagem in mensagens"> <div class="item item-text-wrap"> <h2>{{mensagem.usuario}} /...
asked by 18.07.2016 / 19:42
1
answer

Doubt with decimal numbers asp.net mvc

I have a register, where I have some fields to insert values, but the same is only accepting integer, if you add some value with zero decimal. Controller [Display(Name = "Valor Multiplicador para Opção 01:")] [DisplayFormat(DataFo...
asked by 02.08.2016 / 00:42
3
answers

How to pick up the last four months on a given date

Good afternoon everyone! I need a function that I enter a date and it returns me the date of the last four months, can be done in angular js or javascript, can you give me some help with this? I want to get the last four months / year of a da...
asked by 22.09.2017 / 21:45