Questions tagged as 'angularjs'

1
answer

Redirect a URL from JavaScript to a controller in MVC with Angular

I have declared the following in angular.js .when('/plan', { templateUrl: 'Main/LinkTiless', controller: 'PlanCtrl', controllerAs: 'planEstudios' I will not send it to a view as it is typically done, Content\Views\Pl...
asked by 09.12.2016 / 17:20
2
answers

Add items to an array without duplicating them

Friends good Sunday, I need to add data to an Array, I'm making a kind of shopping cart and I'm at the point where I need to add to a list the products that the end customer wants to buy, the way I use is as follows: <div class="col-s...
asked by 22.01.2017 / 21:40
1
answer

How to format the Currency Filter in Angular.js?

I am using the currency filter in angular.js to display the price of a product, the code and the result it gives me is as follows: {{ item.precio | currency }} result: $15,000.00 How can I format the currency filter to eliminate cents...
asked by 21.03.2017 / 16:44
1
answer

Problem when consuming REST service with AngularJS

Well my problem is this: I have a web application with AngularJS with which I get data from dogs in a database with Servicio REST implemented with Jersey , and I want to show them in a table. The problem is that when the page...
asked by 21.09.2016 / 02:51
2
answers

Print HTML div instead of Popup

I want to know if there is how to print a div with text instead of a popup from AngularJS to the HTML view. So that you can understand me better this is my code: ServCompEdu.servicioCompEdu($scope.cedula).success(function(data...
asked by 31.03.2016 / 06:49
1
answer

Real-time data binning with Angular and PHP

I make a query to a .json file and with the answer I make a table but because the .json file is constantly updated, I need to be observing if that file has changed to show it in real time in the application, and I have tried but I can not get th...
asked by 27.01.2016 / 20:08
1
answer

Avoid passing values twice

When I click on the checkbox it adds the values I have to another table but what I want to avoid if you click again checkbox to avoid adding again its value since the other table already has it. Html where I extract the values &l...
asked by 18.12.2016 / 09:53
2
answers

Format AngularJS date

I'm taking a person's data from an API and I need to format a date. When calling the API to get the date vm.preconcedido.datosPersona.datosPersonales.fechaNacimiento I see the date so that 1961-05-29T00: 00: 00.000 + 0100 I tried to...
asked by 30.08.2018 / 11:27
2
answers

SignalR does not update ng-view when changing pages

1.- It's a simple ng-route, I have 3 buttons, each button navigates to a new route. 2.- I have a father controller and a son controller for the ng-view 3.- For the ng-view I have a template with a span linked to the property...
asked by 25.04.2016 / 17:09
2
answers

how to change the true and false by another name within a ng-repeat in AngularJS?

I must change the true and false that arrive from my controller, I am working with ASP.net and the true and false arrive now I need to rename in the view look at the status. I made this code and it only works for the first value that appea...
asked by 01.08.2018 / 22:14