Questions tagged as 'angularjs'

1
answer

How to trigger the event cancel when I click outside the modal or ESC constraint?

Problem with output from modal $uibModal : var modalInstance = $uibModal.open({ animation: true, templateUrl: 'detalhes_leitura.html', controller: 'ModalController',...
asked by 03.11.2017 / 16:14
1
answer

Chartjs - Insert% at end of value in tooltip

I'm making a Chart.js in angular and I need to put the percent (%) at the end of each tooltip where it shows the value in the chart. Follow my chart code: Html: <canvas class="chart chart-doughnut" chart-data="vm.data" chart-labels="v...
asked by 03.11.2017 / 18:28
1
answer

How to remove the style when the checkbox is cleared in AngularJS?

I need to change the background color of the page when I mark the checkbox and go back to the original color when I uncheck it, I only got the 1st step and can not return the original color, someone help. <body ng-app='turma' ng-style='...
asked by 11.11.2017 / 15:09
1
answer

Working with Data in ngInit

I have an input on my date form. Whenever the user modifies the date, it will be updated in Django and will return another date. When the user enters the screen, I already bring the date as follows: 1996-10-01 Input <input ty...
asked by 31.10.2017 / 16:27
1
answer

bug ng-change with checkbox cheked

The bug is as follows, I have 2 checkboxes , the first one is automatically dialed, the second checkbox has the tag ng-change that calls a function in controller , the problem is, when I turn on the second checkbox...
asked by 24.10.2017 / 20:36
1
answer

Using return of one AngularJS method in another controllerJS

I have this method in my controllerJS script and would need to use the response of this method on another controllerJs. How do I do it? app.controller("loginController", function($scope, $http, $location){ $scope.usuarios = {}; $s...
asked by 19.10.2017 / 15:12
2
answers

How to put page title according to a product using JS?

My problem is in trying to put information in the title, in the description or swap the page image by java script. I am trying to make a shopping page (e-commerce) with angular and on the product page I would like to modify the title, descriptio...
asked by 10.10.2017 / 21:49
1
answer

checked="checked" does not work on ng-repeat

I'm working on a resume feature where basically the user will click on their radio button in which he has experience. The problem is that for a list that will come from the backend , which is now static, checked is not working, ev...
asked by 11.11.2017 / 04:30
1
answer

Error in compiling Ionic and Cordova: An error occurred while running cordova build android --debug (exit code 1):

I'm trying to compile my application, but it gives the following message: > cordova build android --debug × Running command - failed! [ERROR] An error occurred while running cordova build android --debug (exit code 1): Running com...
asked by 03.10.2017 / 00:41
1
answer

Select more than one item in select or something similar angularjs

I need to select more than one option in my select or something like it, is there a possibility? <select ng-model="modelcompraevenda.filial" class="form-control" > <option ng-selected="data.unit == 1" ng-selected="true"...
asked by 03.10.2017 / 21:23