Questions tagged as 'angular-directivas'

0
answers

Parameter in directive * ngFor Angular 6

Good morning. I have a component that has 3 input parameters 1-json_columns 2-json_filas 3-name_filter how can I do so that the name_filter is indicated as the pipe to filter in that data group. component.ts @Input('json_colu...
asked by 30.08.2018 / 18:05
1
answer

Send data from an angular textarea

I have a controller in angular which is responsible by means of a textarea load a content url if it is, if it is not a url does not load any data, the problem is that when wanting to write only text I send indefinite data. functi...
asked by 05.05.2016 / 20:31
1
answer

Obtain data of a promise in an Angular directive

I am working on a directive that needs information to work. This information must come from a promise. The problem is that the directive loads without the information because the promise takes more time to execute than the directive itself. Then...
asked by 22.09.2016 / 23:25
2
answers

Problems integrating jQuery Validator with AngularJs

I have the following directive, which I got on the web to use jQuery Validator with Angularjs app.directive('ngValidate', function () { return { require: 'form', restrict: 'A', scope: { ngValidate: '='...
asked by 20.01.2016 / 01:10
2
answers

Set background-color from an array of colors

I have a component that is responsible for displaying the values of an array of objects and each object has a series of colors assigned: colores: any = [ {id: 1, c1: '#f0f0f0', c2: '#c8c8c8', c3: '#b4b4b4', c4: 'a0a0a0', c5: '8c8c8c'},...
asked by 30.12.2017 / 18:57
1
answer

Problem with angular ng-repeat directive

I have a problem with Angular's ng-repeat directive, I'm creating a banner component that works as follows: when you click on add image, that image is converted to base64 and the new image is added to an array and it is with this array that the...
asked by 05.09.2017 / 18:43
1
answer

How do I pass data between controllers?

I want to make a navigation bar in my web, so, in the index I want to put the section where the user is located. The problem I have is that I do not know how to pass the variable to the MasterController from the Controller of each view, so th...
asked by 07.09.2016 / 12:40
3
answers

AngularJs create a drop-down sidebar menu

Hello community, I am trying to create a pull-down menu in a sideBar for the administrative part. The problem that results is that when I click on a sub-menu all the sub-menus are displayed and vice versa. Here is my code. I hope you can help me...
asked by 11.07.2016 / 16:24
2
answers

How to search for an object in Array?

What I want to achieve is, look for an object in array . Always return -1 whatever you want to say that you can not find any match in array to get your index and then delete that element. I print the array twice, the first...
asked by 01.03.2018 / 16:45
1
answer

Why does it work the same with square brackets and without brackets?

I have a question: <p appAttributeDirectives [color] = green > Look at the attribute color is in a directive that inside has an input that would be the alias and the green attribute is the component.Ts I do not understand why I take...
asked by 18.01.2018 / 17:03