Skip to content

Instantly share code, notes, and snippets.

View vishalnarkhede's full-sized avatar
🖊️
Vishal is typing ...

Vishal Narkhede vishalnarkhede

🖊️
Vishal is typing ...
View GitHub Profile
@dushyant89
dushyant89 / npm_dependency_types.md
Last active June 19, 2019 08:17
NPM Dependency types

NPM dependency types comparison

Compiled a list of differences between different types of dependencies supported by NPM. If you are someone like who doesn't change package.json often but needs something for a quick reference then the below table might be helpful.

| Dimension | Direct | Dev | Peer | Optional | Bundled | |-----------------------------|---------------------------------------|-------------------------------------------------|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------

@dushyant89
dushyant89 / app.module.ts
Last active February 14, 2023 06:07
Angular 2 How to communicate between parent, children or sibling components; Input from Parent; Services
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { ParentComponent } from './app.parent.component';
import { ChildComponent } from './child.component';
@NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [ ParentComponent, ChildComponent ],
bootstrap: [ ParentComponent ]