本文整理汇总了TypeScript中parse.Parse类的典型用法代码示例。如果您正苦于以下问题:TypeScript Parse类的具体用法?TypeScript Parse怎么用?TypeScript Parse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Parse类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(){
Parse.initialize("wQFYcalrOw3YwIQoQ1BcgiMFhGE0tL4P24uKXFDm", "vdPFwegmiQvcnGIrFe09eTCI9oOyxm5buocTBu03");
}
示例2: require
/// <reference path="../../typings/tsd.d.ts" />
var Parse = require('parse').Parse;
Parse.initialize('', '');
export class ParseManager{
constructor(){
}
getOrders(){
return 'test';
}
getProductsCategory(success: (products) => void)
{
var catClass = Parse.Object.extend("ProductsCategory");
var query = new Parse.Query(catClass);
query.find({
success: function(categories) {
success(categories);
}
});
}
getProducts(category: String, success:(products)=>void)
{
var cat = Parse.Object.extend("ProductsCategory");
//var pro = Parse.Object.extend("Products");
var innerQuery = new Parse.Query(cat);
innerQuery.equalTo("objectId", category);
示例3:
import { PropertyDeveloperPage } from "../pages/property-developer/property-developer"
import { MockProvider } from '../providers/mock/mock';
import { PropertyTypeOwnPage } from '../pages/property-type-own/property-type-own'
import { PropertyTypeRentPage } from '../pages/property-type-rent/property-type-rent'
export const firebaseConfig = {
apiKey: "AIzaSyAakL66pSbJOEXY7dWBstaoKY63yS9eL1w",
authDomain: "propertymanagement-77159.firebaseapp.com",
databaseURL: "https://propertymanagement-77159.firebaseio.com",
projectId: "propertymanagement-77159",
storageBucket: "propertymanagement-77159.appspot.com",
messagingSenderId: "667773470325"
};
Parse.initialize("myAppId");
Parse.serverURL = 'http://localhost:1337/parse';
Parse.masterKey = "secret";
// var parsePush = Parse.push = {
// android: {
// senderId: '894300595996',
// apiKey: 'AIzaSyDV8WQ6g7yvFpHD40E7er99ZtsdRKi-e1k'
// },
// }
Parse.cloud = './cloud/main.js';
// Parse.JavaScriptKey = "fi6LWURzRGmTg7neZfI79MJaB2QHjWhiZ4nVFvKP";
@NgModule({
declarations: [
MyApp,
TabsPage,