0 votes
107 views
in MEAN by (0 points)
closed by
import (Injectable) from '@angular/core';

@Injectable(( provided in: 'root ,

export class ProductService(

products=[];

getProducts() { return this products;)

'

In the above code snippet, the provided property in the @Injectable Decorator
closed

1 Answer

0 votes
by (0 points)
 
Best answer
declares that this service should be created by the root application injector

Related questions

0 votes
1 answer 159 views
0 votes
1 answer 138 views

2.8k questions

2.8k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...