All Questions
7 questions
1
vote
1
answer
2k
views
error TS2322: undefined' is not assignable to type 'Product'
this is my service.ts file where getProductById method belong and gives error.
import { Inject, Injectable } from '@angular/core';
import { inject } from '@angular/core/testing';
@Injectable({
...
0
votes
0
answers
256
views
Why can't I have both @Input and @HostBinding in my angular component that uses Reactive Forms?
I have an issue where I'm seeing only one of either @Input or @HostBinding display, but not both.
What I want
If I have the following, the label displays fine as seen in this screenshot with only the ...
1
vote
1
answer
57
views
Is there an element similar to angularJs form.firstname.$active in angular 6
I am looking for an element in angular 6 that is similar finding the active/focused form element so that i can toggle the class on the label related to that input field.
<input type="text" money ...
-1
votes
1
answer
159
views
how to pass data with out using selector in angular 6
Here i am using two component
1) product-filter.component (sorting product based on price)
2) products.component (all product page)
product-filter.component.html
<mat-expansion-panel expanded&...
0
votes
1
answer
8k
views
Angular 6 - Unable to convert "Invalid Date" into a date for pipe "DatePipe"
Hello Friends,
I am phasing an issue related to Date conversion into a desire format.
Actually, REST API sends date into Milliseconds format. which I would like to convert it into a specific date-...
-1
votes
2
answers
189
views
I am trying to pass data from parent to child but I am getting error
I am trying to pass data from parent to child for that I am using @Input decorator , But I am
Getting error :
Can't bind to 'employees' since it isn't a known property of
'app-display-employee'....
3
votes
1
answer
336
views
Error: Cannot find a differ supporting object '[object Object]' of type 'object' Angular 6
I have a problem with. I looked for other solutions and found none that would help me.
The error is:
ERROR Error: Cannot find a differ supporting object '[object Object]'
of type 'object'. NgFor ...