home.component.html <ActionBar title="Home" class="action-bar"> </ActionBar> <ScrollView class="page"> <StackLayout class="home-panel"> <Button text="onActive" (tap)="onActiveButtonTap()"></Button> <Button text="onDeAct" (tap)="onDeActButtonTap()"></Button> <Label textWrap="true" [text]="check + 'Play with nativescript!' " class="normal" [ngClass]="{active : check, deactive : check == false}" class="h2 description-label"></Label> </StackLayout> </ScrollView> home.component.ts import { Component, OnInit } from "@angular/core"; @Component({ selector: "Home", moduleId: module.id, templateUrl: "./home.component.html", styleUrls: ['./home.component.css'] }) export class HomeComponent implements OnInit { check: boole...
Open Visual Studio Code and press Command + Shift + P then type Shell in command palette now you are able to find this option like Shell Command : Install code in PATH from suggested list in command palette. Select that options. That's it. Now open your terminal type. $ code .