Created
August 5, 2017 00:47
-
-
Save ChrisFlannagan/8ce46cfd02ab32a291bbeb026624f2a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page; | |
var observable = require("data/observable"); | |
var pageData = new observable.Observable(); | |
exports.loaded = function(args) { | |
page = args.object; | |
var pushPlugin = require("nativescript-push-notifications"); | |
var self = pageData; | |
// All the pushPlugin code you copied from the readme.md at the push notifications repo | |
page.bindingContext = pageData; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment