Questions tagged as 'angular'

1
answer

mat-table sorting does not work in Angular

I'm trying to sorting my columns with the table sorting material, however I click on sort and nothing happens. My template: <table id="tabelaLogs" mat-table [dataSource]="dataSource" matSort class="mat-elevation-z2 animated zoomIn delay-...
asked by 26.12.2018 / 17:49
0
answers

Template parse errors: 'ion-text-avatar' is not a known element: 1

After putting lazy loading into the IONIC 3 project, following this tutorial, I came across an error in the directivs. What happens, I have the TextAvatarDirective directive that is imported into two pages, its modules: import { NgModule } f...
asked by 10.12.2018 / 14:37
0
answers

How to edit a form in Angular 6+ from dafault values?

I'm having trouble creating an edit page with Angular. Because the same is very related to the life cycle of the components from the requisitions. At first, my HTML form looks like this: <form [formGroup]="formProfile" (submit)="update()...
asked by 24.12.2018 / 00:01
0
answers

List Search within List with Angular Pipe 2

Good morning and Merry Christmas! Personally, I'm having a problem getting a list back from passing a parameter. This search I'm trying to filter is from a list that is inside another list. If I pass as field a field from the "outside" list,...
asked by 25.12.2018 / 13:55
1
answer

[Angular] [Bootstrap] -Effect collapse open and close with just one click

I'm wanting to perform a collapse effect the moment I change the item in the slider below. When I change the item, I get the service, various information reloading my child component (performed a ngFor). I would like to do the close and open eff...
asked by 13.12.2018 / 03:35
0
answers

Transform a scss animation to fit the angular animations

Hello, I need to put in my angular animations the following scss animation: 0% { opacity: 0; -webkit-transform: translate3d(0,100%,0); transform: translate3d(0,100%,0); } 100% { opacity: 1; -webkit-transform: translate3d(0,...
asked by 14.12.2018 / 19:33
1
answer

Remember Login with Storage Ionic

Good morning everyone! I'm trying to remember the user's data when I sign in with Facebook, so I do not need to log in again every time. On my login page you are: loginWithFB(userData) { this.fb.login(['email', 'public_profile']).then((re...
asked by 14.12.2018 / 14:34
1
answer

Is it a bad practice to check Auth on the components I want to crash?

I have the following authentication logic initAuthListener() { this.afAuth.authState.subscribe(user => { if (user) { this.store.dispatch(new Auth.SetAuthenticated()); this.router.navigate(['/training']);...
asked by 07.12.2018 / 20:11
0
answers

RestClient.post Angular 7

I'm trying to create a post like this, more in angular 7: get '/callback' do # get temporary GitHub code... session_code = request.env['rack.request.query_hash']['code'] # ... and POST it back to GitHub result = RestClient.post('h...
asked by 12.12.2018 / 15:16
1
answer

Does anyone know how to Validate if the CPF exists in Angular 2+ or not? I'm looking for and I can not find anything

I'm looking for a way to validate whether the CPF is valid or not in Angular 2+. I've searched a lot for the internet but I do not find anything specific. Someone can help me on this, I'm a rookie in Angular.     
asked by 05.12.2018 / 18:00