Git Product home page Git Product logo

Comments (5)

abennouna avatar abennouna commented on June 19, 2024

Just for the record, that allows writing in the template this:
<ion-label translate>SETTINGS_OPTION1</ion-label>

instead of this:
<ion-label>{{ 'SETTINGS_OPTION1' | translate }}</ion-label>

Please that there's an open bug, which prevents using of this directive syntax:
<ion-label [translate]="'SETTINGS_OPTION1'"></ion-label>

from ionic-starter-super.

AndreasGassmann avatar AndreasGassmann commented on June 19, 2024

I personally still prefer using
<ion-label>{{ 'SETTINGS_OPTION1' | translate }}</ion-label>
because it is clear which part gets translated and you can add non-translatable text beside it.

from ionic-starter-super.

abennouna avatar abennouna commented on June 19, 2024

ok but my point is that with the updated version, you can use either way

from ionic-starter-super.

wbhob avatar wbhob commented on June 19, 2024

Both should work, and you're welcome to change it, but using the directive can be tricky for new users, for whom this is designed.

However, you are welcome to make a fork using the directive, and reference it on your blog/README of this repo. It is unlikely that they will pull it into the master branch, but you're welcome to make your own version. 😄

Please close this issue.

from ionic-starter-super.

abennouna avatar abennouna commented on June 19, 2024

Who said this repo is for new users? If this is the case, the README should state it clearly.

Also, directive vs template interpolation is a matter of preference, but the sole dependency of the Super Starter should be update nevertheless, unless something prevents it?

from ionic-starter-super.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.