10 Matching Annotations
  1. Nov 2020
    1. import dynamic from 'next/dynamic'; const IonHeader = dynamic( async () => { const mod = await import('@ionic/react'); return mod.IonHeader; }, { ssr: false } // this is what makes it work ); export default () => ( <IonHeader> </IonHeader> );
  2. Oct 2018
  3. Sep 2018
    1. We use svg from font-awesome 5 in our tabs. You can add them in your assets folder and reference them directly <ion-tab icon="/assets/font-awesome/light/bars.svg" label="{{managementTabTitle}}" href="/tabs/tab/(management:management)">
  4. Dec 2016
    1. This issue with primitives can be easily avoided by following the "best practice" of always have a '.' in your ng-models – watch 3 minutes worth. Misko demonstrates the primitive binding issue with ng-switch.

      Here's the solution to the problem of binding an input and a title in the context of an Ionic view. It boils down to scope!

  5. Nov 2016
    1. Note: We do not recommend using resolve of AngularUI Router. The recommended approach is to execute any logic needed before beginning the state transition.

      Re: APOD, note that Ionic doesn't recommend the use of resolve. This is the best argument not to!

  6. May 2016
    1. bower_components

      Ionic installs bower components (bower packages) into the project's lib folder:


      This behaviour is defined in the projects .bowerrc file, which looks like this:

        "directory": "www/lib"

      The project .bowerrc file may be found at the same level as the www folder.

      Note that if you install angular-chart this way, you don't need to install Chart.js separately; it is one of the dependencies that bower will install for you. Of course, you must include the script tag that references the Chart.js file as usual!

      Finally, if you want to link angular-chart.css you must follow the same procedure.