0

My session create works well on server side but dependently of if the session exists, I would like to hide some elements printed in angular2 component template. How to check in angular2 component if the session created on server side already exists?

Thanks in advance!

elzoy
  • 5,237
  • 11
  • 40
  • 65

1 Answers1

1

You could use token to validate communication sessions and then adjust the components of the template with conditions or other techniques.

see https://stackoverflow.com/a/15810462/5125608

En español: Podrías usar comunicación por token para validar las sesiones y posteriormente ajustar los componentes del template con condiciones u otras tecnicas.

vea https://stackoverflow.com/a/15810462/5125608

Community
  • 1
  • 1
anlijudavid
  • 509
  • 6
  • 12