constructor(public getData: Data, public nav: NavController, private navParams: NavParams, public sqlite: SQLiteService){
		this.nav = nav;
    this.testId = this.navParams.get('testId');
	}
 constructor(private nav: NavController, public navParams: NavParams, public viewCtrl: ViewController) {
   this.userinfo = this.navParams.get('user');
   this.data = this.navParams.get('data')
 }
Example #3
0
 constructor(public params: NavParams, public viewCtrl: ViewController) {
   this.guest = this.params.get('guest');  
   this.loaded = false;
 }
Example #4
0
 ionViewDidLoad() {
   this.postId = this.navParams.get('postId');
   console.log(this.postId);
   this.post = this.data.getPostById(this.postId);
 }
Example #5
0
 constructor(private nav: NavController, navParams: NavParams) {
   this.product = navParams.get('product');
   console.log(this.product);
 }
Example #6
0
 constructor(private viewCtrl: ViewController, params: NavParams, translate: TranslateService) {
     this.title = params.get('title') || translate.instant('core.imageviewer');
     this.image = params.get('image');
     this.component = params.get('component');
     this.componentId = params.get('componentId');
 }
Example #7
0
 constructor(private nav: NavController, private alertController: AlertController,private params:NavParams) {
   this.nav = nav;
   this.senha1 = "";
   this.senha2 = "";
   this.id = params.get("parametro");
 }
Example #8
0
 constructor(public viewCtrl: ViewController, params: NavParams) {
   this.isFavorite = params.get('isFavorite');
 }
Example #9
0
 constructor(navParams: NavParams, courseHelper: CoreCourseHelperProvider, private viewCtrl: ViewController) {
     this.sections = navParams.get('sections');
     this.selected = navParams.get('selected');
 }
Example #10
0
 constructor(navParams: NavParams) {
     this.module = navParams.get('module') || {};
     this.courseId = navParams.get('courseId');
     this.selectedGroup = navParams.get('group') || 0;
     this.title = this.module.name;
 }
 constructor(private nav: NavController, navParams: NavParams, private _elRef: ElementRef) {
   // If we navigated to this page, we will have an item available as a nav param
   this.selectedItem = navParams.get('item');
   this.word = this.selectedItem.definition.replace(/;/g, '\n');
 }
Example #12
0
 constructor(public navCtrl: NavController, public navParams: NavParams,
 public viewCtrl: ViewController, public alertCtrl: AlertController, public list: ListUsProvider) {
   this.favor = navParams.get("favor");
 }
 constructor(private dataService: LocalStorageService, private nav:NavController, private navParams:NavParams) {
     this.note = navParams.get("note");
 }
 constructor(private nav: NavController, private navParams: NavParams) {
   this.movie = navParams.get('movie');
 }
Example #15
0
 constructor(nav: NavController, navParams: NavParams){
   this.nav = nav;
   this.patient = navParams.get('patient');
 }
Example #16
0
 constructor( private locationFinderService: LocationFinderService,private navParams: NavParams, private _nav: NavController) {
   this.location_code = this.navParams.get("location_code");
   this.skill_code = this.navParams.get("skill_code");
 }
 constructor(private navCtrl: NavController, private params: NavParams) {
   this.surveyOptionResult = this.params.get('surveyOptionResult');
 }
Example #18
0
    constructor(public viewCtrl: ViewController, private params: NavParams, private _pokeService: PokeService, public nav: NavController) {
        this.viewCtrl = viewCtrl;
        this.nav = nav;
        this.pokemon = params.get("pokemon");

        console.log(this.pokemon);

        this.sprite = this.pokemon.sprites.front_default;

        this.colorUrl = this.pokemon.species.url;

        this._pokeService.getColor(this.colorUrl)
            .subscribe(
            color => {
                console.log(color);
                this.color = color.color.name;
                this.description = color.flavor_text_entries[1].flavor_text;
                if (color.evolves_from_species !== null) {
                    this.evolvedFrom = color.evolves_from_species.name;
                    this.noEvolution = false;

                    fetch(`https://pokeapi.co/api/v2/pokemon/${this.evolvedFrom}`).then((response) => {
                        return response.json();
                    }).then((pokemon) => {
                        console.log(pokemon);
                        this.evolvedFromSprite = pokemon.sprites.front_default;
                    }).catch(() => {
                        console.log("error");
                    })
                }
                else {
                    this.noEvolution = true;
                }

            },
            error => alert(error)
            )

        this.types = [];
        this.abilities = [];
        this.stats = this.pokemon.stats;
        this.moves = this.pokemon.moves;
        this.height = this.pokemon.height;
        this.weight = this.pokemon.weight;
        this.locations = this.pokemon.location_area_encounters;

        if (this.locations.length === 0) {
            this.noLocations = true;
        }
        else {
            this.noLocations = false;
        }

        this.exp = this.pokemon.base_experience;

        this.name = this.pokemon.name;
        this.pokemon.types.forEach((type) => {
            this.types.push(type.type.name);
        })
        this.pokemon.abilities.forEach((ability) => {
            let hidden;
            if (ability.is_hidden === true) {
                hidden = 1;
            }
            else {
                hidden = 0;
            }
            this.abilities.push({ name: ability.ability.name, hidden: hidden });
        })

    }
Example #19
0
	constructor(private nav: NavController, private navParams: NavParams, private menuService: MenuService) {
		this.nav = nav;
		this.menuService = menuService;
		this.dish = navParams.get('dish');		
	}
Example #20
0
 constructor(private navCtrl: NavController, navParams: NavParams, private sharedFilesHelper: CoreSharedFilesHelperProvider,
         private sitesProvider: CoreSitesProvider, private domUtils: CoreDomUtilsProvider,
         private fileProvider: CoreFileProvider) {
     this.filePath = navParams.get('filePath');
 }
Example #21
0
 constructor(public viewCtrl: ViewController, public navParams: NavParams) {
   this.content = this.navParams.get('userInfo');
 }
Example #22
0
 constructor(private serv: MemberServices, private nav: NavParams) {
     let name = nav.get('member');
     this.teacher = this.serv.getTeachers()
         .subscribe(data => this.processTeacher(data, name));
 }
Example #23
0
 constructor(private nav: NavController, navParams: NavParams) {
     // If we navigated to this page, we will have an item available as a nav param
     this.selectedItem = navParams.get('item');
 }
Example #24
0
 constructor(private nav: NavController,private navParams: NavParams, public af: AngularFire) {
   this.selectedStdClass = this.navParams.get('selectedStandard');    
 }
 constructor(public nav: NavController, public bookmarkService: BookmarkService, navParams: NavParams) {
   this.post = navParams.get('post');
 }
Example #26
0
 /**
  * Inject dependencies
  * get video object from router, store in this.video
  * sanitize url from video object
  * @param nav
  * @param navParams
  * @param sanitizer
    */
 constructor(private nav: NavController, navParams: NavParams, sanitizer: DomSanitizationService) {
   this.video = navParams.get('video');
   console.log(this.video);
   //base url for embedding youtube videos + the video id, derived from object
   this.videoURL = sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/" + this.video.id.videoId + "?rel=0");
 }
Example #27
0
 constructor(params: NavParams) {
     this.userId = params.get('userId');
     this.courseId = params.get('courseId');
 }
Example #28
0
 constructor(public navCtrl: NavController, public navParams: NavParams, afoDatabase: AngularFireOfflineDatabase) {
   this.transactionID = this.navParams.get('transactionName');
   this.jobcardID = this.transactionID.split(":")[0]
   this.item = afoDatabase.object('/transactions/' + this.jobcardID + '/' + this.transactionID);
   console.log(this.item)
 }
 constructor(private params: NavParams, private nav: NavController) {
   this.paciente = params.get("parametro");
   this.dao = params.get("data");
   this.nav = nav;
 }
  ionViewDidLoad() {
    this.refugees=this.navParams.get('refugees');

  }