Skip to content

open-for-everyone/Omkr.WebApp.Portfolio

Repository files navigation

OmkrWebAppPortfolio

This project was generated with Angular CLI version 16.2.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

Create Component

  • In a root folder
n g c componentName
# or
ng generate component componentName
  • In a specific folder
ng generate component path/to/your/folder/your-component-name

Create Service

  • In a root folder
n g s serviceName
# or
ng generate service serviceName
  • In a specific folder
ng g s path/to/your/folder/your-service-name

Linting the Application

  • This below command runs the linter on your application code to check for code quality issues.
ng lint

Adding Support for Features

ng add package-name

Generating Guards or Add the auth

ng generate guard guard-name

Generating Interfaces

ng generate interface interface-name

Generating Enums

ng generate enum enum-name

Generating Modules

   ng generate module module-name
   ng g m module-name
  • Generate route file also
   ng generate module module-name --routing
   ng g m module-name --routing

Generating Directives

   ng generate directive directive-name

Generating Pipes

   ng generate pipe pipe-name

Generate Class

ng generate class hero --type=model