Questions tagged as 'angular'

2
answers

Group Array by matches

My question goes first because I am developing a project where I need to list the medications associated with a medical formula, but after saving the data when I visualize them, I repeat the heading of the formula multiple times, for which I nee...
asked by 23.10.2018 / 07:39
0
answers

Error with Angular 2 to create Post and HTTP response

Because when creating a Post, the json returns by default, I have my service.ts addRestaurante(restaurante: Restaurante) { let json = JSON.stringify(restaurante); let params = "json="+json; let headers = new Headers({'Con...
asked by 16.10.2018 / 01:10
1
answer

Error Property 'active' does not exist on type 'SidebarComponent' Angular6

I'm running the ng run build command in my angular6 project and I get the following error:    ERROR in src \ app \ sidebar \ sidebar.component.html (1,68):: Property 'active' does not exist on type 'SidebarComponent'. This is the...
asked by 17.10.2018 / 16:10
1
answer

Concatenate date and time in a variable

I need to create a complete date with date and time, I have two functions that receive a date and another time and I want to concatenate them to show the following format: yyyy-MM-dd HH:mm:ss dateChange(selectedDate) { //console.log...
asked by 17.10.2018 / 13:40
0
answers

Print contents of a div in Prime NG

I have the following code to print a part of a screen: const printQR = document.getElementById (divName) .innerHTML; const content = document.body.innerHTML; document.body.innerHTML = printQR; window.print (); document.body.innerHTML = conten...
asked by 14.10.2018 / 02:47
0
answers

Error in Cloud functions in Firebase: the node server js does not find the dependencies of the angle workers

Hello, I hope you're ok Maybe you can help me solve my little problem: the server node js of firebase, shows me the error message that I describe later. Only the same code implemented a week before if it works. The server node js I use it to b...
asked by 12.10.2018 / 21:39
0
answers

ERROR in src / app / app.module.ts (26.8): error TS1005: ')' expected

import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { SigninComponent } from './app/signin/signin.component'; import { HttpClientModule } from '@angular/common/http'; import {...
asked by 12.10.2018 / 08:07
0
answers

Collect value from a datepicker in Angular 5

I have the following datepicker <mat-form-field> <input matInput [matDatepicker]="picker" placeholder="Hoy"> <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> <mat-datepicker #picke...
asked by 11.10.2018 / 09:36
0
answers

Execute a rest service before loading the components children

Hi how I have a problem with service that fills the user's data in session and I use this to show a different view in the components children, my problem is that when I refresh the browser, the service is fired first but the component son and ch...
asked by 10.10.2018 / 16:55
0
answers

Error creating an angular service

Good I'm starting with angular and I want to create a service but when I try it, it does not and it gives me the following error: (node:4292) ExperimentalWarning: The fs.promises API is experimental Cannot read property 'NullLogger' of undefi...
asked by 13.10.2018 / 07:44