This project was generated with Angular CLI version 7.3.0.
This is a test application to reproduce Bug 340 of vscode-ng-language-service
To reproduce:
- Clone this repository to the hard drive
- Run
ng build test-library
from the working copy - Open the working copy in VS Code with
vscode-ng-language-service
installed - Open
application.html
in VS Code - See errors:
- 'bug-example' is not a known element:
- If 'bug-example' is an Angular component, then verify that it is part of this module.
- If 'bug-example' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.",
- The pipe 'examplePipe' could not be found
- 'bug-example' is not a known element:
- Run
ng serve --open
and verify that the page correctly renders:
This is the app component This is the example component. Input value: Hello World
This is the example pipe. Value passed in: Hello World
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.