I check a parameter with an array that can have values it or not. I have a Ng-Switch does a check in this array. I would like it when it had no value to display a Message.
I've done ng-switch-when="" but it did not work and I do not kn...
When working with AngularJS it is very common to have applications where services contain only HTTP calls to the server that will store the data. However, in an application where we will not have a server our service can be responsible for many...
Hello, I'm learning AngularJs and in my exercises I came across the following question: How do I show a description in place of a code. For example
$scope.aeronaves = [ cod_anv: '1', fabricante: '1' ];
$scope.fabricantes = [ cod_fab: '1', nome...
I have a question in AngularJS!
The source code is at link
In the factory I have a property named identity , which is mirrored to the controller and displayed in the view. When adding a new message this property is incremented corr...
I have the following directive:
.directive('validateCPF', function () {
return {
require: 'ngModel',
link: function (scope, element, attrs, ctrl) {
ctrl.$validators.cpf = function (modelValue, viewValue) {...
I'm making an application with angularJS.
I have pages being called, but a single one does not appear.
Here are my codes:
app.js
var app = angular.module("vc", ["ui.router"]);
app.config(function($stateProvider){
$stateProvider
.sta...
I'm developing a system using angular and have the following function:
function drawLatLong(i, arrayIdColetor) {
.....
(não exibi o código por ser grande e achar desnecessário que vcs o analisem)
.....
});
This function...
I am trying to format a decimal value so that it is always sent in this format: 00.00, I have an example in this site link
If you enter 20.10 = 20.1 (you want it to look like 20.10)
if you enter 15.00 = 15 (you want it to stay 15.00)
&...
When making a request to a java control that returns a key map and value "String":
@ControllerSupport
public Map< String, String > teste() {
Map< String, String > teste = new HashMap< String, String >();
teste.put( "T...
I'm using the angular file upload , it works great, but I need the feedback that the server me available. I'm using the following code:
$scope.uploader = new FileUploader({
url: 'https://api.imgur.com/3/image',
alias: 'image',
h...