# Is not a function

**URL:** <https://forum.ionicframework.com/t/is-not-a-function/134294>\
**Category:** ionic-v3\
**Created:** [July 4, 2018, 1:47am UTC](https://forum.ionicframework.com/t/is-not-a-function/134294 "2018-07-04T01:47:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anisyafiqah](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Anisyafiqah](https://forum.ionicframework.com/u/Anisyafiqah)\
**Post date:** [July 4, 2018, 1:47am UTC](https://forum.ionicframework.com/t/is-not-a-function/134294/1 "2018-07-04T01:47:19Z")

</div>

Hi, i am very new to ionic and im using ionic framework to build a mobile apps. So ive been using codes from internet for my project. In my apps there are buttons to be connected. At first when i tested the code, it was good & the pages were connected. But when i am tried to reload bcs i made changes to the html page, theres error-----YourFancyButton is not a function. Ive been trying many times and the result is still the same. So this is the code for my button:

--------------------------------------------------(fun.html)-------------------------------------

```auto
       <ion-col>
            <button ion-button (click)="YourFancyButton()" large round color="secondary" class="button-full" style="height:90px; width:320px" icon-start> 
            <ion-icon large name="bulb"></ion-icon> Funfacts </button></ion-col>

```

----------------------------------------(fun.ts)------------------------------------------

```auto
 import { Component } from '@angular/core';
 import { NavController } from 'ionic-angular';
 import { FunfactsPage } from '../funfacts/funfacts';
 
 @Component({
    templateUrl:'fun.html'
 })
 
 export class FunPage {
   constructor(public navController: NavController) {
   }
 
   YourFancyButton(){
     this.navController.setRoot(FunfactsPage);
     }
 }

```

This button in FunPage is going to be connected to FunfactsPage. Btw, to test the app i type ionic serve and tested it by using devApp through mobile phone. Pls help me, this project is for my internship for a company ☹ Thanks in advance!

---

<div class="post-metadata">

**Author:** ![anna\_liebt](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@anna\_liebt](https://forum.ionicframework.com/u/anna_liebt)\
**Post date:** [July 4, 2018, 6:39am UTC](https://forum.ionicframework.com/t/is-not-a-function/134294/2 "2018-07-04T06:39:30Z")

</div>

Hello,

I see no typo. In this case try: Delete content of www folder and .sourcemaps folder. Clear cache of browser. Build with ionic serve again.

Maybe it helps.

Best regards, anna-liebt

---

<div class="post-metadata">

**Author:** ![Anisyafiqah](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Anisyafiqah](https://forum.ionicframework.com/u/Anisyafiqah)\
**Post date:** [July 8, 2018, 4:14am UTC](https://forum.ionicframework.com/t/is-not-a-function/134294/3 "2018-07-08T04:14:17Z")

</div>

Hi,

Thank you for your replies 🙂

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:30pm UTC](https://forum.ionicframework.com/t/is-not-a-function/134294/4 "2021-07-19T21:30:27Z")

</div>

Closed on July 19, 2021, 9:30pm UTC


