How to Show/Hide Elements Based on User Roles with Ionic [v4]

Поделиться
HTML-код
  • Опубликовано: 11 окт 2018
  • Join my special Ionic School today: ionicacademy.com/
    Video Courses, Project Templates, Community & the Support you deserve to learn Ionic!
    #############################
    Want to read instead of watch? Here's the full tutorial: ionicacademy.com/ionic-role-b...
    Want more tutorials? Here you go! devdactic.com/
    Just getting started? Take my 7 Day Ionic Crash Course: ionicacademy.com/ionic-crash-...
    #############################
    My Private Daily Vlog: / @solopreneuradventures...
    You can also find me
    on / schlimmson
    on / devdactic
    on / simongrimm_
    #############################
  • НаукаНаука

Комментарии • 17

  • @JFkingW
    @JFkingW 5 лет назад +1

    By far the best Channel for Ionic videos! Thank you.

  • @cbolaurent
    @cbolaurent 4 года назад

    And ... once again ... you saved my life !

  • @Omryking
    @Omryking 3 года назад +1

    Always rely on this channel!

  • @blokche_dev
    @blokche_dev 5 лет назад

    Great! Thank you!

  • @malinayir8675
    @malinayir8675 5 лет назад

    Thanks Simon chief.

  • @vinodbagul221
    @vinodbagul221 5 лет назад

    Thanks Simon sir, I am eagerly waiting for your new video for alarm functionality

  • @conexcol
    @conexcol 5 лет назад +2

    Hi Simon, I was testing this to show/hide menu items based on roles from an api, however the menu it's initialized before the api can return any data so it won't show the items for a particular role. How to refresh the menu after getting the api data with the roles array?

  • @simocennetten5239
    @simocennetten5239 5 лет назад

    thank you so much

  • @maniya10824
    @maniya10824 5 лет назад +1

    Thanks for uploading new concept video. Here I have a question?. My question is Auth service having behavior subject but in our application we didn't unsubscribe the behavior subject. Why?. It's having memory leakage?.

  • @XunknowsouljahX
    @XunknowsouljahX 5 лет назад

    Hey Simon, awesome tutorial. I have a question, my ngOninit is called twice. So i get multiple *appHasRole component in my app. Do you know why this is happening? Thank you

  • @tacklewithtricksbykajala.4231
    @tacklewithtricksbykajala.4231 3 года назад

    Sir will u plz provide the video for displaying angular component with datatable according to user role

  • @m4tt72
    @m4tt72 5 лет назад

    I love you videos! I always thought you are Indian bcs of the accent lol

  • @assal0le
    @assal0le 4 года назад

    how to get our user role from worpress website?

  • @eoghanfeighery7383
    @eoghanfeighery7383 3 года назад

    Is there a way this code can work for JavaScript?

    • @galaxies_dev
      @galaxies_dev  3 года назад

      The logic used is quite specific to Angular, and I guess you refer to vanilla JS so it's not going to work like this!