Questions tagged as 'angular-directivas'

2
answers

Can I use an AngularJs keypress inside a div and not an input?

Good morning, I'm starting to make a game that is a 100x100 board on the screen, I want to be able to recognize when the keyboard dates are pressed so that the player moves along the board, I'm using AngularJS, for that there is the ng direct...
asked by 17.04.2017 / 18:28
0
answers

With an angle directive detect when I scroll on several div [closed]

It's something like this but implemented in an angle directive that I do not have much knowledge about angle <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="scrollable" id="co...
asked by 13.02.2017 / 18:22
1
answer

Call a ng-click function within a directive

I have the following problem, I have created the following directive: appController.directive('erCustomerror', function() { return { restrict: 'E', scope: { clickOn: '&', textoVariable: '=texto'...
asked by 03.09.2016 / 19:46
2
answers

Format Input text with dotted format in thousands and decimal places

I am trying to create a directive or other element that allows me to show formatted an input text as 12.345,67 and to enter the decimal point (,). Examples:    Thousand, formatted should be 1,000       Thousand with 53 decimals,...
asked by 18.05.2018 / 13:58
2
answers

Can an Angular directive be added by Script?

What I'm trying to do is add the ng-checked directive on a <a> tag with JQuery because I use Bootstrap Material Design and it makes me not work said directive mentioned, since this CheckBox is redefined by some Script. Wh...
asked by 22.05.2018 / 08:19
1
answer

* ngIf if you find a value in an angular array 4

How can I do the ngIf with the condition that it shows the element if it finds an element in an array, be it a string or a string, I do not have anything on the internet I tried * nfIf="userModel.roles.find (x = > x.name == 'administrat...
asked by 11.03.2018 / 08:14
1
answer

jquery steps does not work on angular 4

The problems with jquery steps with angular 4 is that it does not work for binding a field within jquery steps. that is to say in the component I have a variable called public borrar:string; then a method loadInfo() { this.borrar = "hola...
asked by 07.01.2018 / 17:13
3
answers

Get only the first element of an array with NgFor

I have an array of elements where I only want to bring the first one ( sale_price ), but in ngFor it brings all the sale_price . Code Angular : <*ngFor="let valor of equipo.equipment_details;">{{valor.sale_price}}&...
asked by 27.12.2017 / 21:13
1
answer

Is it necessary to import md-autocomplete in Angular 1.5.8?

This is my first project in AngularJs and I'm trying to create a filter with the md-autocomplete field but nothing appears on my page. When writing the label I do not appear in suggestions the package md- as if what happens to me with ng- or...
asked by 18.10.2017 / 17:06
2
answers

"Next" and "return" button in something similar to a form with Angularjs

Good morning. I need to know how I can use the "next" and "return" buttons on something similar to a form with html using angular js. Said "form" will be more like an online test, in which the user will click on "next" and "return" as he advance...
asked by 18.02.2017 / 18:19