Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

27 total results found

Debugging

Angular

Chrome inspect element select your component and it will be assigned to $0 run ng.probe($0).componentInstance change values as you desire or call object class members to trigger the changes run ng.probe($0)._debugInfo._view.changeDetectorRef.detectChanges()

Access Parent Component

Angular

Using @Input and a little trick to send the this of the parent to the child. I guess you can do it the other way around also, to access child from parent via an @Output Parent Component import { Component } from '@angular/core'; @Component({ selector: 'ap...

Router :: Subscribe to Route Changes

Angular

This example will change the function of a contextual button in a bootstrap/navbar import { Component, OnInit } from "@angular/core"; import { Router, NavigationEnd } from "@angular/router"; import "rxjs/add/operator/filter"; @Component({ selector: "my-a...

Structural Directives - The Asterisk (*) Prefix

Angular

The (*) is a syntactic sugar. You'll have a ng-template wrapped arround the host element with the *directive. This snippet @Component({ selector: 'app-root', templateUrl: './app.component.html', styles: [] }) export class AppComponent { la = [1, 2, 3];...

Spotlight

macOS

Exclude folders from index It seems like .metadata_never_index method does not work anymore, since Mojave. However *.noindex and symlink aren't indexed by mds (the backend of Spotlight). For example rename all node_modules to node_modules.noindex and create a ...

Launchpad

macOS

Reset defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

Major Version Upgrade on Debian

Postgres

make a snapshot/backup of the machine check the running clusters using pg_lsclusters command drop the new cluster (the one running the target version) sudo -u postgres pg_dropcluster --stop 15 main (optional) if you are ssh-ing from a macOS/Item2 the LC_C...