當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript NavParams.get方法代碼示例

本文整理匯總了TypeScript中ionic-angular.NavParams.get方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavParams.get方法的具體用法?TypeScript NavParams.get怎麽用?TypeScript NavParams.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ionic-angular.NavParams的用法示例。


在下文中一共展示了NavParams.get方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: ngOnInit

 async ngOnInit() {
   const cardName = this.navParams.get('cardName');
   this.cardConfig = await this.giftCardProvider.getCardConfig(cardName);
   await this.getCards();
   this.listenForUpdates();
 }
開發者ID:bitpay,項目名稱:copay,代碼行數:6,代碼來源:purchased-cards.ts

示例2: ionViewDidLoad

 ionViewDidLoad() {
   console.log(this.navParams.get('id'));
 }
開發者ID:edu2act,項目名稱:course-hybrid-app-development,代碼行數:3,代碼來源:b.ts

示例3: constructor

    constructor(private settingsDelegate: CoreSettingsDelegate, platorm: Platform, navParams: NavParams) {
        this.isIOS = platorm.is('ios');

        this.selectedPage = navParams.get('page') || false;
    }
開發者ID:SATS-Seminary,項目名稱:moodlemobile2,代碼行數:5,代碼來源:list.ts

示例4: ngOnInit

 ngOnInit() {
   this.filter = this.navParams.get('filter');
 }
開發者ID:Darkmarus,項目名稱:blog,代碼行數:3,代碼來源:filter.ts

示例5: constructor

  constructor(public nav: NavController, public navParams: NavParams, public bookmarkService: BookmarkService) {
    // If we navigated to this page, we will have an item available as a nav param
    // this.post = navParams.get('post');
        this.post = navParams.get('post');

}
開發者ID:michaeldemille,項目名稱:SouthernUtahCares,代碼行數:6,代碼來源:givingpost.ts

示例6: constructor

 constructor(private randomService: RandomService, public navCtrl: NavController, public navParams: NavParams) {
   this.showResult = false;
   this.pageName = navParams.get('name');
   this.items = navParams.get('items');
   this.selectedItem = this.randomService.random(this.items);
 }
開發者ID:mcuongvu28,項目名稱:Japlingo,代碼行數:6,代碼來源:character-random.ts

示例7: constructor

 constructor(navParams: NavParams) {
     this.module = navParams.get('module') || {};
     this.courseId = navParams.get('courseId');
     this.title = this.module.name;
 }
開發者ID:SATS-Seminary,項目名稱:moodlemobile2,代碼行數:5,代碼來源:index.ts

示例8: getLink

 getLink(){
   this.embedID = this.params.get('vidID');
   this.vidLink = `https://www.youtube.com/embed/${this.embedID}`;
 }
開發者ID:tutsplus,項目名稱:get-started-with-ionic-2,代碼行數:4,代碼來源:singlevideo.ts

示例9: constructor

 constructor(public navCtrl: NavController, public navParams: NavParams, public http: Http, public events: Events) {
     this.items = this.navParams.get('sources'); 
     var d = this.navParams.get('date');
     this.updateConfDate(d);
 }
開發者ID:stevenluong,項目名稱:apollo,代碼行數:5,代碼來源:configuration.ts

示例10: constructor

 constructor(private navCtrl: NavController, private navParams: NavParams) {
   this.global = this.navParams.get('global');
 }
開發者ID:RemaxThailand,項目名稱:RemaxMobile,代碼行數:3,代碼來源:system-config.ts


注:本文中的ionic-angular.NavParams.get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。