Skip to content

Commit 9222237

Browse files
Merge pull request #1174 from angristan/fix-cat-example
Overview>Providers: add filename for interface snippet
2 parents cd8b986 + d113514 commit 9222237

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class CatsService {
5353
Our `CatsService` is a basic class with one property and two methods. The only new feature is that it uses the `@Injectable()` decorator. The `@Injectable()` decorator attaches metadata, which tells Nest that this class is a Nest provider. By the way, this example also uses a `Cat` interface, which probably looks something like this:
5454

5555
```typescript
56+
@@filename(interfaces/cat.interface)
5657
export interface Cat {
5758
name: string;
5859
age: number;

0 commit comments

Comments
 (0)