Skip to content

Instantly share code, notes, and snippets.

@vchimev
vchimev / fullTemplateTypeCheck.txt
Created December 4, 2020 10:13
Angular Compiler Full Template Type Check Option Errors
ERROR in src/app/shared/filters/left-filter/left-filter.component.html:21:81 - error TS2339: Property 'displayCheck' does not exist on type 'string | number | { displayCheck: boolean; }'.
Property 'displayCheck' does not exist on type 'string'.
21 <span *ngIf="selectedCriteria[criteria.filterFieldName] && !selectedCriteria[criteria.filterFieldName]?.displayCheck"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/shared/filters/left-filter/left-filter.component.ts:44:18
44 templateUrl: './left-filter.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component LeftFilterComponent.
import { EventData } from "tns-core-modules/data/observable";
import { Page } from "tns-core-modules/ui/page";
import { Tabs } from "tns-core-modules/ui/tabs";
export function goToFirst(args: EventData) {
console.log("---> goToFirst");
const page = <Page>(<any>args.object).page;
const tabsNav = <Tabs>page.getViewById("tabsNav");
tabsNav.selectedIndex = 0;
@vchimev
vchimev / tns-create
Created April 26, 2019 07:24
A `tns create` command failure.
✝  ~/git  master  gs
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
✝  ~/git  master  ndv
v12.0.0
✝  ~/git  master  nv
6.9.0
✝  ~/git  master  tv
@vchimev
vchimev / livesync-navigation.ts
Last active February 7, 2019 18:07 — forked from vakrilov/livesync-navigation.ts
NativeScript-Angular HMR
import { NgZone } from "@angular/core";
import { Router } from "@angular/router";
import { onBeforeLivesync, onAfterLivesync } from "nativescript-angular/platform-common";
import { RouterExtensions } from "nativescript-angular/router";
let cachedUrl: string;
onBeforeLivesync.subscribe(moduleRef => {
console.log("#### onBeforeLivesync");
if (moduleRef) {
const router = <Router>moduleRef.injector.get(Router);
@vchimev
vchimev / hmr-ns-ts-vue.md
Last active January 11, 2019 09:03
NativeScript-TypeScript ant NativeScript-Vue HMR Smoke Tests

NativeScript-TypeScript HMR

Setup

  • create a master-detail application and update its dependencies/configs:
tns create my-master-detail-ts --template https://github.com/NativeScript/template-master-detail-ts
@vchimev
vchimev / hmr-ns-ng.md
Last active January 10, 2019 16:10
NativeScript-Angular HMR Smoke Tests

NativeScript-Angular HMR

Setup

  • create a master-detail application and update its dependencies/configs:
tns create my-master-detail-ng --template https://github.com/NativeScript/template-master-detail-ng
ROOT FRAME SCENARIOS:
1. Show modal dialog with frame
1.1. Navigate to modal second page within modal dialog
1.1.1. Go back
1.2. Show nested modal dialog
1.2.1. Close nested modal dialog
1.3. Close modal dialog
2. Show modal dialog
2.1. Show nested modal dialog
2.1.1. Close nested modal dialog
@vchimev
vchimev / launch.json
Created January 31, 2018 12:19
ns-ci-build-tool/.vscode/launch.json
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug",
@vchimev
vchimev / update-android-emulators.sh
Last active January 30, 2018 18:41
A script to update android emulators.
#!/bin/bash
var=$(android -h)
print_and_execute() {
echo "sdkmanager $1" # print
yes | $ANDROID_HOME/tools/bin/sdkmanager "$1" # execute
}
if [[ $var == *"Usage:"* ]]; then
echo "Old SDK Tools!"
@vchimev
vchimev / update-android-sdk.sh
Last active January 30, 2018 18:42
A script to update android sdk components.
#!/bin/bash
var=$(android -h)
print_and_execute() {
echo "sdkmanager $1" # print
yes | $ANDROID_HOME/tools/bin/sdkmanager "$1" # execute
}
if [[ $var == *"Usage:"* ]]; then
echo "Old SDK Tools!"