Posts by Marcelo Rodrigues • 81 points
6 posts
-
1
votes1
answer671
viewsA: How to instantiate Httpclient in Angular 4 typescript?
Within the app.module.ts you can set how the previovider will be instantiated. Create an object informing the class that will be provided (provide), the method that will do the new (useFactory) and…
-
0
votes2
answers911
viewsA: URL exchange but view keeps - routing with angular 4
Check if the tag <router-outlet> is inserted in the app.html and has no name filter: <router-outlet name="list">
angularanswered Marcelo Rodrigues 81 -
0
votes1
answer39
viewsA: Include components in different parts of the page
I answered a similar question in the post /a/246370/94387 Complementing: If you want to pass parameters to the component enter in the field-search.componente.ts: import { Input, Component } from…
-
0
votes1
answer1368
viewsA: Return of Request - Angular4
Only missing the Return on the service http (so the typescript interprets that you return a value-free observable): public getCredentials(){ var url =…
-
0
votes1
answer522
viewsA: Angular 2 - Component Creation (Tags)
1-Create a component (field-search.component.ts) import { Component } from '@angular/core'; @Component({ selector: 'my-campo-busca', templateUrl: './campo-busca.component.html', styleUrls:…
-
1
votes1
answer786
viewsA: Angular 2 in production
To put on a nodejs server: 1- If you are using angular cli run the command to generate the Bundles: ng build --prod This will generate the dist folder with all the site static code. 2- Download Node…