Skip to content

Instantly share code, notes, and snippets.

@ranakrunal9
ranakrunal9 / cordova-questions-answers.md
Created September 17, 2021 11:20
Cordova Interview Questions & Answers
@ranakrunal9
ranakrunal9 / search.html
Created November 18, 2016 13:39
Search Pipe Angular 2
<!-- Pipe Usage in HTML -->
<input placeholder="keyword..." [(ngModel)]="search"/>
<div *ngFor="let item of items | searchPipe:'name':search ">
{{item.name}}
</div>
@ranakrunal9
ranakrunal9 / child.component.ts
Created November 17, 2016 07:18
Parent and children communicate via a service in Angular2
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { CommonService } from './common.service';
@Component({
selector : 'child',
templateUrl : './child.html'
})
export class ChildComponent implements OnInit, OnDestroy {