Animated Responsive Sidenav in Angular | Part 1 | Responsive Sidenav

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ธ.ค. 2022
  • In this video we'll create an animated responsive side navigation bar from scratch using angular.
    _________________________________________________
    Project helper:
    github.com/Angular-istic/Proj...
    _________________________________________________
    Commands used
    To generate components :
    ng g c body --skip-tests true
    ng g c sidenav --skip-tests true
    ng g c dashboard --skip-tests true
    ng g c products --skip-tests true
    ng g c statistics --skip-tests true
    ng g c coupens --skip-tests true
    ng g c pages --skip-tests true
    ng g c media --skip-tests true
    ng g c settings --skip-tests true
    _________________________________________________
    If you think there's a better way to improve this code, please let us know in the comments.
    If you like this video please subscribe to Angularistic, like and share this video.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 78

  • @marcio9161
    @marcio9161 8 หลายเดือนก่อน +15

    This was the most confuse angular tutorial that I've ever seen, but the result was amazing

  • @bronwynpotgieter7405
    @bronwynpotgieter7405 ปีที่แล้ว +4

    Looks super sleek! Thank you!

  • @FirstnameLastname-we6kg
    @FirstnameLastname-we6kg ปีที่แล้ว +2

    Something different than using angular material. Thanks👍👍

    • @jacobokomo6077
      @jacobokomo6077 ปีที่แล้ว +5

      Thanks a lot. A this is what i like the most about this build. No Material, just plain SCSS!
      Could you explain, I would love it more when you speak and explain a bit.

  • @techsoft1578
    @techsoft1578 10 หลายเดือนก่อน +8

    For people facing issue with the nav bar not being expanding just set the .sidenav class width to 5rem :) hope it helps

    • @billchavez4874
      @billchavez4874 2 หลายเดือนก่อน

      30 min solving this issue

  • @edfurtado6637
    @edfurtado6637 9 หลายเดือนก่อน

    very good, amazing, my friend, I want to use bootstrap in the project and modal componet, but when installing and using the compoment it doesn't cover all screens, refactoring the code, it's due to the fixed position of the sidenav menu, if you change this attribute it breaks the structure, how do I solve it?

  • @antoniolincolnmsjunior7636
    @antoniolincolnmsjunior7636 10 หลายเดือนก่อน

    great layout bro!! thank you

  • @ferrywijaya6404
    @ferrywijaya6404 8 หลายเดือนก่อน

    Hello sir thanks for sharing this tutorial.
    i got some problem sir, when i resize the form, the navbar cannot automatically display like above video example. the text keep in selected styleClass and only change if i click refresh browser button.

  • @leonelperez1943
    @leonelperez1943 ปีที่แล้ว

    You are a genius! thanks!

  • @mejaay4077
    @mejaay4077 ปีที่แล้ว

    Are there any way to convert sidenav bar into header bar when resize the screen?

  • @edilsonfilho5721
    @edilsonfilho5721 7 หลายเดือนก่อน

    When I do click on button "A" to expand, the button reduce own size for a moment, then back to the normal size

  • @nikitakumari5302
    @nikitakumari5302 ปีที่แล้ว

    Hey I dont, know why but when I open dashboard sidenav bar disappears.

  • @MrBoBrilO
    @MrBoBrilO ปีที่แล้ว

    Can you enable routing for these somehow so data on different tabs is loaded dynamically when adding/editing/deleting (from the database)?

    • @shubhamtehare
      @shubhamtehare ปีที่แล้ว

      yes i added crud table for sidenav links which will add edit delete export data by using spring boot backend

  • @H4LIL_G
    @H4LIL_G หลายเดือนก่อน

    thats great :)

  • @lamyabenammar3050
    @lamyabenammar3050 ปีที่แล้ว

    thanks a lot! I hope it works for me.

  • @sureshthalluru2012
    @sureshthalluru2012 4 หลายเดือนก่อน

    Hey Angularistic team,
    Can you tell me, which versions of Angularjs, Nodejs, typescript, rxjs is used here in this application.
    It will be helpful for us.
    Thanks.
    Suresh

  • @user-xb8es7ld9u
    @user-xb8es7ld9u 10 หลายเดือนก่อน +1

    Everything is working good. Except that on click on the component, the icon is barely visible and the size is small as compared to in the video.
    The styling is same no error but still getting this.
    Anyone faces this??

  • @VinayTiwari-gn3ps
    @VinayTiwari-gn3ps ปีที่แล้ว

    Nice content

  • @Alexander-um9vd
    @Alexander-um9vd ปีที่แล้ว

    hey bro , great job !! a question , How can I make the navigation bar allow opening links from external pages?

  • @srafa16
    @srafa16 7 หลายเดือนก่อน

    The icons don't appear can someone help me?

  • @pkyadav4628
    @pkyadav4628 ปีที่แล้ว

    Angular material used or bootstrap

  • @naiomi5532
    @naiomi5532 2 หลายเดือนก่อน

    hello i wanna ask it'is possible to update to angular 17 ?

  • @VinayTiwari-gn3ps
    @VinayTiwari-gn3ps ปีที่แล้ว

    Much better

  • @SHEFAT-xq3ge
    @SHEFAT-xq3ge 7 หลายเดือนก่อน

    my response in navbar is not working. need source code

  • @benmakhloufaya5037
    @benmakhloufaya5037 3 หลายเดือนก่อน

    Can we use this with CSS? Because I use CSS, not SCSS

  • @AbdulSamad-rt2bj
    @AbdulSamad-rt2bj 2 หลายเดือนก่อน

    how to get other icons name

  • @basmaeladnany6064
    @basmaeladnany6064 8 หลายเดือนก่อน +1

    For the people who click on the sidenav and the body content doesnt go to the right ( the sidenav hides the content) just do like the video and try emptying the browser's cache, for me it worked on private navigation, but didn't work on normal until i cleared it. hope it helps

    • @aymenwedherfi881
      @aymenwedherfi881 3 หลายเดือนก่อน

      i'm having same problem and can't fix it

  • @ydct1544
    @ydct1544 ปีที่แล้ว +3

    Hello, when clicking on the first button to expand the menu, the body element does not move to the right.
    ngOnInit(): void {
    this.screenWidth = window.innerWidth;
    }
    I have reviewed all the code and it is the same as yours, it is the only thing I am missing. Can you help me? I'm using Angular 16.0.2. Will it be because of the Angular version?

    • @salonimalkani2934
      @salonimalkani2934 ปีที่แล้ว

      same problem with me...did you got the solution??please let me know

    • @ydct1544
      @ydct1544 ปีที่แล้ว

      @@salonimalkani2934 No, I haven't been able to fix the problem yet. I think it has to do with the variable this.screenWidth which, even though it changes its value, this value doesn't get passed to body.component, as if the interface between components is failing in some way.

    • @salonimalkani2934
      @salonimalkani2934 ปีที่แล้ว

      @@ydct1544 okay no issues thanks fir replying

    • @kishoret1411
      @kishoret1411 ปีที่แล้ว +7

      Make sure in app.component.html @18.30 the code should be inside the closing tag of .

    • @eclipsehunter
      @eclipsehunter ปีที่แล้ว

      @@kishoret1411 thanks brother

  • @heitkrr
    @heitkrr ปีที่แล้ว

    is it normal to a component to every button like you did? or its better to create just one and use it for every sidebar button?

    • @fabiobrizzi1738
      @fabiobrizzi1738 ปีที่แล้ว

      better to have component for each

    • @BethellJack
      @BethellJack 8 หลายเดือนก่อน

      why?
      @@fabiobrizzi1738

  • @salonimalkani2934
    @salonimalkani2934 ปีที่แล้ว

    hey can you help me with one thing??plzzz

  • @enriquemaestre2950
    @enriquemaestre2950 ปีที่แล้ว

    Muchas gracias!! lo logré

    • @ydct1544
      @ydct1544 ปีที่แล้ว

      Felicitaciones, amigo, cuando haces clic en el botón principal empuja a la derecha el contenido principal?, te funciona esa parte?

    • @luiszelphmorenoruiz1845
      @luiszelphmorenoruiz1845 2 หลายเดือนก่อน

      Amigo, que version de Angular estas usando, a mi no me esta funcionando lo del router-outlet en body

  • @janickspielmann2695
    @janickspielmann2695 8 หลายเดือนก่อน

    Is there no sound, or is it my pc? There does not have to be sound, but just wandering.

  • @juliofrancadasilva5504
    @juliofrancadasilva5504 ปีที่แล้ว +1

    My page doesn't move the element to the left when I click, is there a css problem? I'm using ngOnInit and it's not working

    • @saradhieb9640
      @saradhieb9640 ปีที่แล้ว

      same

    • @youssefhasbi1
      @youssefhasbi1 ปีที่แล้ว

      @@saradhieb9640 same problem if you have solution show me

    • @saradhieb9640
      @saradhieb9640 ปีที่แล้ว

      @@youssefhasbi1 yes you just need to update the width of .sidenav element and reduce it ( try different width until you get the width you want )

    • @danielgoful
      @danielgoful ปีที่แล้ว

      I speak Spanish, but a few weeks ago I went through the same thing, I think my solution was this
      getBodyClass(): string {
      let classStyle = '';
      if(this.collapsed && this.screenWidth > 768)
      {
      styleClass = 'trimmed-body';
      }
      else if(this.collapsed && this.screenWidth 0)
      {
      styleClass = 'body-md-screen';
      }
      return style class;
      }

    • @ydct1544
      @ydct1544 ปีที่แล้ว

      @@danielgoful Hola, pero no entiendo cual fue tu solución, me ayudas?

  • @nurte4
    @nurte4 3 หลายเดือนก่อน

    hi, can u share github repo

  • @david_mosquera6207
    @david_mosquera6207 11 หลายเดือนก่อน

    Someone got the error with OnInit, the dashboard does not run for me when the sidenav is opened

    • @itsmhasnatawan
      @itsmhasnatawan 10 หลายเดือนก่อน

      Same happened with me

  • @bavrzar8576
    @bavrzar8576 11 หลายเดือนก่อน

    What theme for vscode is used in the video?

    • @angularistic
      @angularistic  11 หลายเดือนก่อน +1

      Night Owl

    • @bavrzar8576
      @bavrzar8576 11 หลายเดือนก่อน

      Thanks! 🥰@@angularistic

  • @jhairdanielosoriogarzon9830
    @jhairdanielosoriogarzon9830 ปีที่แล้ว

    Hi need Help

  • @virokalu
    @virokalu 7 หลายเดือนก่อน

    Guys, Use Angular version 16 or lower to work with this tutorial smoothly.

  • @s.m.faizanraza1729
    @s.m.faizanraza1729 9 หลายเดือนก่อน

    source code link ?

  • @elliotalderson1604
    @elliotalderson1604 10 วันที่ผ่านมา

    left the full code please

  • @babatundeadenowo7568
    @babatundeadenowo7568 ปีที่แล้ว +1

    Almost broke my headphones out of frustration. bs.

  • @jhonquistiano4531
    @jhonquistiano4531 ปีที่แล้ว

    che culey no lo pasas

  • @LarsRyeJeppesen
    @LarsRyeJeppesen ปีที่แล้ว

    In body component: getBodyClass() is being call ayyyyyyyyyyy lot of times, it will really be nasty for performance.

    • @ferrywijaya6404
      @ferrywijaya6404 8 หลายเดือนก่อน

      have any option for that sir?