Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do I need to import to use directive that take into account the costume sizes #148

Open
axell9641 opened this issue Jun 3, 2020 · 0 comments

Comments

@axell9641
Copy link

axell9641 commented Jun 3, 2020

Hi I trying to use the custom sizes I have defined like this:

const config = {
  breakPoints: {
      xs: {max: 600},
      sm: {min: 601, max: 900},
      md: {min: 901, max: 1200},
      lg: {min: 1201, max: 1799},
      xl: {min: 1800}
  },
  debounceTime: 100
};
<app-desktop-home ></app-desktop-home>
<app-mobile-home  ></app-mobile-home>

What directive should I use to tell the first component to show only if size is sm or larger
What directive should I use to tell the second component to only show if size is xs

And the most import question, how to include those directive. I tried adding them to a module, but it didn't work

Thanks in advance

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

No branches or pull requests

1 participant