Questions tagged as 'angular'

1
answer

Problems implementing lib ng2-img-max!

I installed ng2-img-max for the purpose of resizing images. I want each submitted image to be resized to a predefined width and length. I see that most people use ng2-img-max when developing with 2/4 angular. I tried using this lib and then face...
asked by 09.08.2018 / 15:31
1
answer

Disabling comments on Angular

I'm starting to study Angular (current version) and I have verified that after all the codes are compiled, the development information comments that I put in the .ts files are replicated to the .js files generated by Angular. These...
asked by 29.08.2018 / 19:55
2
answers

Identify numbers and letters typed in input fields with typescript

I want to perform an alphanumeric validation, requiring the use of capital letters and numbers typed in an input using typescript. I need to know when a capital letter is typed, for example nAbd and when a cdc5fr number is entered....
asked by 30.08.2018 / 05:06
1
answer

When loading list, mat-select should already be filled

This is my html <div class="container"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered"> <caption> Lista de Aplicabilidad...
asked by 31.07.2018 / 23:43
1
answer

Why does the app.component.css file not work in Angular?

When we run in the Angular command the ng g c page --spec=false it creates a component consisting of four files, an HTML file, a module file, a CSS file and a TS file as shown in the figure below , in my case below I did not have to exe...
asked by 28.08.2018 / 11:23
1
answer

Components and Services

I'm developing an application and I came across the following problem: I'm working with an api that manages a website and I have some endpoints like: banners , testimonials , user / strong> etc, most endpoints have some relation to image...
asked by 19.07.2018 / 15:55
1
answer

Error in mat-select when I try to choose an item

Error:    ngModel can not be used to register form controls with a parent   formGroup directive. Try using         formGroup's partner directive "formControlName" instead. Example: My HTML <div class="container"> <form [for...
asked by 18.07.2018 / 20:03
1
answer

Where in strings list does not work Cloud Firestore

I am not able to return documents from a collection where this document has a field called tags which is a list of strings with the tag ID. Below is the code I'm trying to do: document = this.afs.collection('todos', ref => ref.where(...
asked by 19.07.2018 / 17:40
1
answer

Sharing module globally in the Angular

I created a project using the Angular-Cli tool and I installed it together    npm install --save @ angular / material @ angular / cdk       npm install --save @ angular / animations And as the documentation itself explains, I imported th...
asked by 25.07.2018 / 13:45
1
answer

Angled Routes 2+

My application starts in the component Login component: bootstrap: [LoginComponent] In my login routing module I defined the following routes: const loginRoutes: Routes = [ {path: 'dash', component: DashboardComponent}, {path: 'regist...
asked by 18.07.2018 / 18:13