Questions tagged as 'angular5'

2
answers

How to modify the messages of an input validation? in Angular

I take this as an example: The html <div class="md-form"> <input mdbInputDirective type="text" id="nombre" class="form-control" formControlName="nombre"> <label for="nombre">Nombre</label> </div>...
asked by 26.09.2018 / 22:53
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

Dropdown does not work on angular 5

I am developing an app in angle 5 and I have 2 dropdown of bootstrap (as shown in the image). the point is that the first one works fine but the second when clicking it gives the following error: Uncaught TypeError: Bootstrap dropdown require...
asked by 20.10.2018 / 08:46
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

style.marginTop with the value of an angular variable

I'm trying to give the property style.marginTop.px to my html by loading the value of an angular variable. Something like this: Template: <div class="map-container"> <div class="map"> <div class="marcador" [style.marginT...
asked by 21.03.2018 / 16:38
1
answer

Use the Navs Tab of Bootstrap in Angular 7+

I am trying to create a Nav Tab from a loop with NgFor in Angular 7+ but when I try to bind the aria-controls property it always gives me error, attached code and error. CODE <a *ngFor="let video of videos; let i = index" [ngClass]...
asked by 03.01.2019 / 14:22
2
answers

Error compiling my project for production in Angula Cli 6

I have an error compiling my project to go up to production: src\app\landing\landing.component.html(185,71): : Property 'textoland' does not exist on type 'LandingComponent'. Contact.ts export class Contact { public $key: string;...
asked by 02.11.2018 / 20:31
1
answer

Upload an angular project to a production server

I want to upload my angular project to a production server, but when I run >> ng build --prod It does not generate any errors Your global Angular CLI version (7.0.3) is greater than your local version (6.1.3). The local Angular CLI...
asked by 01.11.2018 / 17:41
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

How to install Font Awesome 5 in Angular 6?

Since I do not use yarn search for npm ( link ). In src / app / app.module.ts    Import {FontAwesomeModule} from '@ fortawesome / angular-fontawesome' I add it to imports    FontAwesomeModule And this causes m...
asked by 03.10.2018 / 17:13