Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-hello-npm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-hello-npm

Starter for creating Angular NPM packages.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-hello-npm

Build Status npm version

Starter for creating Angular NPM packages.

Install in your project

npm install ngx-hello-npm --save

Using the Component

Add Component to Module imports

import { HelloModule } from 'ngx-hello-npm';
...
@NgModule({
 ...
   declarations: [
        AppComponent,
        ...
    ],
    imports: [
      BrowserModule,
      FormsModule,
      HelloModule,
      ...
 ...
})
export class AppModule {}

Add Component to your Application

@Component({
    selector: 'my-app',
    template: `
    <h3>Hello NPM</h3>
    <div>
        <hello></hello>
    </div>
  `,
})
export class App {
   ...
}

Developers

The index.js file exports the HelloModule from the ./src/app/hello directory. TypeScript definition files are in the index.d.ts file. If changing the directory of the exported module, or adding exported modules, please update these two index files and make the necessary changes to tsconfig-aot.json's "include" array. You may also want to update the npm clean script.

Run the example application locally

  • git clone https://github.com/johnfedoruk/ngx-hello-npm
  • cd ngx-hello-npm
  • npm install
  • ng serve # Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Run the tests locally

  • Same as above, except for the last step do:
  • npm run test-once # Executes the unit tests via Karma.

Running end-to-end tests

  • Same as above, except for the last step do:
  • ng e2e # Executes the end-to-end tests via Protractor.

License

MIT

FAQs

Package last updated on 06 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc