Questions tagged as 'angular'

0
answers

How to work with dynamic select in angular 4?

Watch the video: Angular 5 - Select Dynamic My real goal is to be able to implement a dynamic select of states and cities as shown in the 21 minutes and 38 seconds of this video but I'm having trouble for lack of experience, I do not...
asked by 04.02.2018 / 14:07
1
answer

Can I call a function inside the Validators in a reactive form?

I made a method and would like to use it as Validators, in a reactive form, in Angular 2. Is it possible? controle(){ let data : number = this.formCep('nasc').value.split("-")[2]; let atual = new Date().getFullYear(); if(data - atu...
asked by 07.02.2018 / 13:13
0
answers

Angular 2 - Insert components dynamically into another component

Scenario: @Component({ selector: 'app-form', templateUrl: '<form> <!-- put a childs of component --> </form>', styleUrls: ['./formulario.component.css'] }) export class formularioComponent implements...
asked by 01.02.2018 / 13:18
0
answers

How to mount a dynamic combo with angle 5?

I'm trying to build a dynamic combo with Angular, but I'm not having success, I was able to implement with static values, but I was not successful when I was adapting it with my Java API that has connection to the database. > My goal is to loa...
asked by 01.02.2018 / 14:09
0
answers

Required MultipartFile parameter 'file' is not present when I make a request for Angular 4

I can make a request to upload a file through Postman, but when I make the request of the Angular, the WARN "Required MultipartFile parameter 'file' is not present" Here's my Java API feature with Spring boot. @PostMapping public ResponseEn...
asked by 31.01.2018 / 11:43
1
answer

Display in ngModel return from FireStore

How to display the data returned from the FireStore in an Angular ngModel directive? I would like to get the data that is returned from the FireStore and display in an Angular ngModel directive, displaying on an edit screen. person.model....
asked by 31.01.2018 / 00:16
0
answers

Control Components Children Angular 2+

I need to create a component that controls other components, the idea is to set up a parent component (grid-component) that controls the child component (user-form-component). Something like this: <grid-component> <user-form-comp...
asked by 30.01.2018 / 21:01
0
answers

Is it possible for the HTML of the AppComponent to be displayed before solving canLoad?

Consider the following array of routes: const appRoutes: Routes = [ { path: 'dashboard', loadChildren: 'app/modules/dashboard/dashboard.module#DashboardModule', canActivate: [AccessManagerGuard], canLoad: [AccessManagerGu...
asked by 04.02.2018 / 20:43
0
answers

Angular how to load a list first

I'd like some help if someone has already used this component: Ng2TableModule} from 'ng2-table / ng2-table'; What happens, I'm trying to come up with the list filled in at the beginning, but it's not working, why, I'm identifying this because it...
asked by 05.02.2018 / 00:56
1
answer

canLoad does not work with BehaviorSubject

The AuthenticationManager service has the following code: private loggedIn: BehaviorSubject<boolean>; constructor( private http: ApplicationHttpClient, private router: Router, private a: HttpClient) { this.loggedIn = ne...
asked by 07.02.2018 / 11:28