0 votes
127 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 190 views
0 votes
1 answer 156 views

3.0k questions

3.0k 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.
...