- 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
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; |
✝ ~/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 |
{ | |
// 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", |
#!/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!" |
#!/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!" |