Skip to content

Instantly share code, notes, and snippets.

View manoj10101996's full-sized avatar
🧿
Focusing

Manojkumar Muthukumar manoj10101996

🧿
Focusing
View GitHub Profile
@manoj10101996
manoj10101996 / app.component.html
Created March 23, 2025 13:46
Angular sharing data between components - input() / output() / model() signals
<div class="p-5">
<h1>
Parent component
</h1>
<hr>
<div class="card card-body bg-warning text-bg-warning">
Value from parent: {{counter}}
</div>
<hr>
<input type="number" [(ngModel)]="counter" class="form-control">
@manoj10101996
manoj10101996 / app.component.html
Created March 23, 2025 04:06
Accepting & Receiving data with input / output decorators properties [Parent to Child] - @input() , @output() decorator
<app-child-input-decorator [counter]="counterParent" (counterEmit)="receiveCounter($event)" ></app-child-input-decorator>
@manoj10101996
manoj10101996 / index.pug
Created November 27, 2017 05:56
Material Login Form
// Mixins
mixin input(type, label)
.input-container
input(type='#{type}' id='#{label}' required)
label(for='#{label}')=label
.bar
mixin button(text)
.button-container
button
span=text