Questions tagged as 'angular'

1
answer

Delay in return subscribe - Angular4

I started studies with angular4. I made a simple request that returns me a json . So good! When comparing in my component with the data returned from my service , it gives me an error in the console: Script to component...
asked by 17.10.2017 / 00:50
0
answers

Angular 2 - Template?

In a structure like this: <header></header> <main> div1: <router-outlet></router-outlet> div2: <router-outlet></router-outlet> div3: <router-outlet></router-outlet> </main>...
asked by 10.10.2017 / 20:05
1
answer

Error while running the "npm run prod" command in Git Bash to give Build in an Ionic 2 project

I'm having a project ready for publishing, which was created with Ionic 2 using the Google Firebase API, but when I try to build the project for production, with the following command in Git Bash: "npm run prod" is displayed an error I could not...
asked by 20.10.2017 / 20:32
1
answer

Format date with Angular DatePipe

I have a date in the timestamp format and I wanted to format it for Portuguese text, for example: "Wednesday, October 18, 2017", but I put the pipe "| date: 'fullDate'" and it does not work. When I take the toLocaleString("pt-BR") and ret...
asked by 18.10.2017 / 18:02
1
answer

Use the decorator Input or declare in the meta data?

I have the following question: Today, as far as I can see, there is a way to receive information in a Component of the Angular. But I am in doubt about the "performance" issue.    The following example I do the import of the package "@...
asked by 04.10.2017 / 15:07
0
answers

Catch hours by Datetime - Ionic 3

I need to do a project for my school and I do not know how to get the value of the times that the user selects, by ion-datetime (Ionic 3). Could anyone help me?     
asked by 12.10.2017 / 23:09
0
answers

UI framework that does not conflict with Angular 2+?

I'm using Angular 4, I really like it, but I've seen that the Angular documentation suggests using component CSS, right? I found it a rather uncomfortable practice and I'm preferring to use it by style, typically. However, I see that it confl...
asked by 13.10.2017 / 19:45
1
answer

Angular 2 - Creation of Components (Tags)

How do I create components in Angular? I want my team to put a TAG Ex: <campoBusca></campoBusca> and on the screen a input is already printed, with the necessary divs , etc! could you understand? It's the same principle as th...
asked by 03.10.2017 / 15:19
1
answer

How do I add an animation while loading a request from Angular 4?

My service looks like this: export class ServicoService { constructor(private http:Http) { } public listar() { return this.http.get('aqui a url') .toPromise() .then(response => response.json()); } }...
asked by 30.09.2017 / 20:02
1
answer

Data is clicked back

I have an application in Angular 2 where I have some data insertion screens ( inputs ). When the user types the infos and clicks to go forward, clicking the back button gives the information. I tried to do something in LocalStora...
asked by 27.09.2017 / 16:57