Questions tagged as 'angularjs'

1
answer

Create policies with Angularjs

The button should display an alert but nothing appears, nor an error. What is wrong? Here is the code: angular.module('App', []) .directive('sonclick', function () { return {...
asked by 12.01.2015 / 20:35
1
answer

Problem with Uppercase and Lowercase in Angularjs

Personal follow the example of a script on stackoverflow.com as follows the link below: [link] I happen to be having problems with words that are capitalized eg a word that is "Protocol" and I type "protocol", the filter does not find it....
asked by 31.01.2015 / 23:35
2
answers

Datepicker with Angularjs

Good Night, I'm using a directive for a Datepicker DIRETIVE angular.module('app').directive('datepicker', function() { return { restrict: 'A', require : 'ngModel', link: function(scope, element, attrs, ngModelCtrl) { $(e...
asked by 04.09.2015 / 08:35
2
answers

Redeem service result http in another function

controllerPrincipalService.getResultado(id).then(function(dados) { // limpando o retorno var p = data.search("{")-1; var res = data.substring(76); var f = res.search('<'); dados = data.substring(p,...
asked by 02.04.2014 / 15:44
2
answers

How to make null directives AngularJS?

The idea is to make when calling a unique directive, it render the directive corresponding to the preconfigured CSS framework. For this I have a global variable var window.styleSource = "bootstrap"; (after which I can set whatever valu...
asked by 15.04.2014 / 16:00
1
answer

How to manipulate CSS property in Angular JS

I have a function written with jQuery (not Angled) to do the scaling of the minimum height of a div that in this case is the main content div of the layout of a web application. This function is necessary because it serves to fill the whole spac...
asked by 02.06.2014 / 21:45
1
answer

Validate CPF in Angular 5 [duplicate]

Expensive, I would like to know how I can validate CPF in angle 5, I have already done several searches but so far nothing. I've already been able to perform email validation. Could you help me?     
asked by 05.10.2018 / 18:50
1
answer

How to add dependencies in a module already initialized in AngularJs?

I usually use AngularJS with a framework where I have a Javascript script for each page of my application. The main dependencies and project settings I define in a app.js file, which is used on all pages. More or less like this: /...
asked by 28.08.2018 / 20:41
1
answer

How to detect if the $ http request is a cache response or not?

In AngularJs, $http has a very useful option of caching the result of a request to a specific url . For example: $scope.getUsers = function () { return $http.get('/users', {cache: true}) } $scope.getUsers().then( res...
asked by 14.07.2018 / 17:00
1
answer

Error npm install angularjs-dragula

I need to install angularjs-dragula ng2-dragula react-dragula At first I had the error: C:\Users\email\Desktop\Parafernalia Test> npm install angular js-dragula --save npm WARN saveError ENOENT: no such file or directory, open 'C:\U...
asked by 05.07.2018 / 16:10