---
title: "Discussion on \"Creating and test components in Angular\" | Hashnode"
description: "Discussion on \"Creating and test components in Angular\". creating a component\nng g c components/posts --skip-tests\nThis line will not generate the test file. We will make it later.\nThis component will try to get the posts and delete the posts. Code of the postComponent is given below:\nexport class PostsCom..."
url: "https://hashnode.com/posts/creating-and-test-components-in-angular/62f16f0006b76161f6761e3a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating and test components in Angular](https://98sunny.hashnode.dev/creating-and-test-components-in-angular?utm_source=hashnode&utm_medium=feed)

creating a component ng g c components/posts --skip-tests This line will not generate the test file. We will make it later. This component will try to get the posts and delete the posts. Code of the postComponent is given below: export class PostsCom...

Aug 8, 2022 · 4 min read · 98sunny.hashnode.dev  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#karma](https://hashnode.com/tag/karma)
-   [#jasmine](https://hashnode.com/tag/jasmine)
-   [#component](https://hashnode.com/tag/component)
-   [#angularcomponent](https://hashnode.com/tag/angularcomponent)

## Written by

[Sunny Singh](https://hashnode.com/@devsunnysingh)

@devsunnysingh

  
[View profile](https://hashnode.com/@devsunnysingh)

Tech enthusiast, anchor and a writer!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
