Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

is-mobile helper #2

Merged
merged 8 commits into from
Aug 8, 2019
Merged

is-mobile helper #2

merged 8 commits into from
Aug 8, 2019

Conversation

Amerr
Copy link
Contributor

@Amerr Amerr commented Jun 17, 2019

  • is-mobile helper is added to use is-mobile functionality in templates, without injecting as service.

@Amerr
Copy link
Contributor Author

Amerr commented Jun 17, 2019

@sandydoo Can you review this PR.

Copy link
Owner

@sandydoo sandydoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I would be happy to merge pending the changes.

@Amerr
Copy link
Contributor Author

Amerr commented Aug 7, 2019

@sandydoo Reverted the changes as you specified

@Amerr
Copy link
Contributor Author

Amerr commented Aug 8, 2019

@sandydoo done

README.md Outdated
@@ -51,7 +51,7 @@ It expects one argument to be passed as a param.
```

```handlebars
<div class="{{if (is-mobile 'android' 'is-android')}} {{if (is-mobile 'apple' 'is-apple')}}">
<div class="{{if (is-mobile 'android') 'is-android')}} {{if (is-mobile 'apple') 'is-apple')}}">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't work. You still have the extra parentheses on the ends there.
Should be:

<div class="{{if (is-mobile 'android') 'is-android'}} {{if (is-mobile 'apple') 'is-apple'}}">

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, sorry for multiple commits

@sandydoo sandydoo merged commit 881536b into sandydoo:master Aug 8, 2019
@sandydoo
Copy link
Owner

sandydoo commented Aug 8, 2019

Thanks, @Amerr!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants