hypery2k/nativescript-urlhandler

View on GitHub
demo-angular/app/app.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Component, OnInit } from "@angular/core";
import { handleOpenURL, AppURL } from 'nativescript-urlhandler';

@Component({
    selector: "ns-app",
    templateUrl: "app.component.html",
})

export class AppComponent implements OnInit {
    constructor() {
    }

    ngOnInit() {
        handleOpenURL((appURL: AppURL) => {
            console.log('Got the following appURL', appURL);
        });
    }
}