0.0.2 • Published 2 years ago

ngx-parser v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

NgxParser

This library was generated with Angular CLI version 13.3.0.

Code scaffolding

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

Note: Don't forget to add --project ngx-parser or else it will be added to the default project in your angular.json file.

Build

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

Publishing

After building your library with ng build ngx-parser, go to the dist folder cd dist/ngx-parser and run npm publish.

Running unit tests

Run ng test ngx-parser to execute the unit tests via Karma.

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.

AppModule

import { ParseModule } from "ngx-parser" .... @NgModule({ imports: [ ... ParseModule.forRoot({ imports: CommonModule, otherModule }) ] }) export class AppModule { }

AppComponent

export class AppComponent { title = 'library';

mycomponent=class { //optional constructor(){ console.log("huhu");

}
ngOnInit(){
  console.log("huhu");
  
}

} html="it's works" styles=p{ color:red; }

}

....