Questions tagged as 'angular-directivas'

1
answer

Filter in angular js (ionic framework urlRouter provider)

I am consuming a web services which returns me a json, What I'm doing is first of all put a list of each object with its content and id, When I click on an item I use parameters by url and I enter it by id, since its value is unique, but I have...
asked by 11.05.2016 / 07:30
1
answer

Remove html tags when doing binding on angularjs

I have a json which contains text with html tags. I would like to know how to remove these tags I have been checking that ng-bind-html help, but I really do not know how to implement it. I hope you can help me. Below I share my files Json...
asked by 18.05.2016 / 06:52
1
answer

Add div with Angular 6

Dear I am looking for forums but I can not find the answer, someone can help me how to add a div with angle 6. I have created the component, but I can not create the element in the sun. I want to develop a button that adds a row in an accordion,...
asked by 24.10.2018 / 23:20
1
answer

Error: StaticInjectorError (AppModule) [HttpClient]:

I have the following code in TypeScript, the problem is placed when the constructor passed the variable validarUsuario gives me this error in the browser console:    Error: Error: StaticInjectorError (AppModule) [HttpClient] What i...
asked by 18.07.2018 / 21:31
1
answer

I do not want to work the decorator @input in angular

Good morning to want to pass data from father to son with the decorator @ input to run the page I get this on the page: Failed to compile. ./ src / app / son / hijo.component.ts Module not found: Error: Can not resolve '@ angular / core /...
asked by 14.01.2018 / 16:08
1
answer

How can I remove and put a class with a toggle using ionic 2?

I want a div to have a specific class when a toggle is in True and you remove it when the toggle is False using ionic 2 . Once I saw in a tutorial that they used a condition with the ng-class directi...
asked by 14.06.2017 / 00:29
1
answer

Page and order full list in angular

I have a list of records that I show with ng-repeat that I'm sorting by phone and I'm listing it. <li ng-repeat="todo in filteredTodos | orderBy:'phone':true">{{todo.phone}}</li> I need to sort and paginate the list, bu...
asked by 06.07.2017 / 15:44
1
answer

Angular Reagent Forms, valueChanges does not capture the new value

I have a problem that I've been trying to solve for some time. I have 3 inputs that interact with each other to calculate the price with VAT and vice versa. I leave you a stackblitz so you can see it better. Stackblitz The problem is,...
asked by 23.07.2018 / 02:00
1
answer

How can I send the id along with an event in Typescript

I have the following defined method: elclick(id:string) { console.log('El id es: ' + id); } And my html is this: <a id="0" (click)="elclick(this.id);">Button</a> What is the way this is done?     
asked by 24.07.2018 / 21:02
1
answer

I get the following error 'directives' does not exist

cronometro.html <div> <button (click)="start()" >Empezar</button> <button (click)="lapso()">Lapso</button> <button (click)="stop()">Parar</button> </div> <div> <p>{{hora}...
asked by 14.07.2018 / 20:15