Angular 9 Flex Layout Getting started with FxLayout and Angular Material

Поділитися
Вставка
  • Опубліковано 8 кві 2020
  • Using flexbox CSS layout we can change the width and height of HTML DOM elements based upon the available space.
    =============================================
    For any Business enquiry contact us
    Gmail :- tarique.rkl@gmail.com
    WhatsApp :- +917978073704 (for only business query)
    =============================================
    We can define different kinds of layouts for different kinds of display devices and different screen sizes.
    In this video I am going to show you how you can design the responsive layout using angular flex-layout along with angular material.
    Source Code ( GitHub Link ): github.com/Tariqu/flex-tutorial
    Flex-Layout Documentation Link : github.com/angular/flex-layout
    Angular Material UI Documentation : material.angular.io/
    Angular Flex Layout provides a sophisticated layout API using Flexbox CSS + mediaQuery. This module provides Angular developers with component layout features using a custom Layout API, mediaQuery observables, and injected DOM flexbox-2016 CSS stylings.
    The Flex Layout engine intelligently automates the process of applying appropriate Flexbox CSS to browser view hierarchies. This automation also addresses many of the complexities and workarounds encountered with the traditional, manual, CSS-only application of box CSS.
    The real power of Flex Layout, however, is its responsive engine. The Responsive API enables developers to easily specify different layouts, sizing, visibilities for different viewport sizes and display devices.
    Getting Started
    Start by installing the Angular Layout library from npm
    npm i -s @angular/flex-layout @angular/cdk
    Next, you'll need to import the Layout module in your app's module.
    app.module.ts
    import { FlexLayoutModule } from '@angular/flex-layout';
    ...
    @NgModule({
    ...
    imports: [ FlexLayoutModule ],
    ...
    });
    After that is configured, you can use the Angular Layout attributes in your HTML tags for flex layout:

КОМЕНТАРІ • 79

  • @drakebhau8922
    @drakebhau8922 3 роки тому +5

    Bro, You are giving the quality content free of cost. It's precious, Thanks.

  • @hbdarji
    @hbdarji 4 роки тому +3

    Very clear cut and short, precise explanation. Just what I needed! Thank you! :)

  • @RaymondBarbour
    @RaymondBarbour 4 роки тому +6

    Clear and simple. Will help me get going quickly

  • @rahulkengar1312
    @rahulkengar1312 4 роки тому

    This is very helpful ...Waiting for the next video

  • @pradeepkumarkushwaha8519
    @pradeepkumarkushwaha8519 4 роки тому +1

    Nice Video Sir. It really helped a lot to understand. It is very clear and to the point. Thank you.

  • @cypherLabs
    @cypherLabs 4 роки тому

    Thanks for the detailed video. You are awesome

  • @iwuce101
    @iwuce101 10 місяців тому

    If this was paid content, it would cost about a thousand dollars. Thank you so much for giving out such info for free.

  • @Anuj_Kumar_1
    @Anuj_Kumar_1 4 роки тому +1

    Thanks for teach in details and in easy way

  • @nadya6833
    @nadya6833 4 роки тому +1

    thanks for this tutorial , it was a big help for me :)

  • @muneebmukhthar4880
    @muneebmukhthar4880 2 роки тому

    What a soothing tutorial with a music in BG 😍

  • @HernandesJunio
    @HernandesJunio 4 роки тому

    Gostei muito da explicação, foi bem claro.

  • @appartementschambres140
    @appartementschambres140 4 роки тому +1

    Good observation

  • @RamuRamu-jp3yy
    @RamuRamu-jp3yy 3 роки тому

    good explanation subscribed liked

  • @SubratRed
    @SubratRed 4 роки тому

    AWESOME.....

  • @yassirbahlouli3791
    @yassirbahlouli3791 4 роки тому

    you are great , you helped me a lot

  • @ajaykumhar8356
    @ajaykumhar8356 4 роки тому +4

    Thia is very helpful so please make more videos (work with flex layout). we are improvising by your work

  • @sergiozurita2033
    @sergiozurita2033 3 роки тому +5

    media$ is deprecated. Therefore, you should use asObservable as follows:
    this.mediaSub = this.mediaObserver.asObservable().subscribe((change: MediaChange[]) => { console.log(change[0].mqAlias) });

  • @chandruskc
    @chandruskc 3 роки тому +2

    Ah.. That soothing music in the background

  • @yasarhussain3811
    @yasarhussain3811 4 роки тому

    thanks for video bro please add more complex videos in angular

  • @sherafattradings
    @sherafattradings Рік тому

    Thanks,
    A useful video.

  • @lacramioaracorneanu6271
    @lacramioaracorneanu6271 2 роки тому

    Great tutorial! Thank you! Do you have tutorial also for the grid list with mat-cards?

  • @manikcheruku4399
    @manikcheruku4399 3 роки тому

    Thanks a lot

  • @mezianekettou9097
    @mezianekettou9097 4 роки тому +7

    Don't forget to add the following import to your styles.css file:
    @import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
    If not adding color="primary" to the mat-toolbar will have no effect.

  • @scienceisareligion2231
    @scienceisareligion2231 4 роки тому

    Thank you

  • @balajid4963
    @balajid4963 3 роки тому

    Thanks lot boss

  • @srinathsathyanath7435
    @srinathsathyanath7435 3 роки тому

    This is gold 🔥

  • @Alejandro-gg7oz
    @Alejandro-gg7oz 3 роки тому +3

    css grid + angular is not good idea when you using routing links because router-outlet doesnt work with css grid, hope angular flex layout will work fine

  • @macgideons4201
    @macgideons4201 2 роки тому

    accurate tutorial.. what of the continuation of this tutorials? I mean the sidebar and the card..etc

  • @AmitKumar-yj1dx
    @AmitKumar-yj1dx 4 роки тому +3

    Hlw babaji , this really helped me but the 2nd part of this video is missing , plz upload it Sir

  • @adel8167
    @adel8167 4 роки тому

    I get this error everytime I try to install. any idea why: '@angular/flex-layout@latest' is not in the npm registry.

  • @amitprakash2567
    @amitprakash2567 3 роки тому

    Bro, where are the continuation videos for this series? Please help me with this. And could you please make a video for full website design using Flex-layout & Angular Material?

  • @pratapjena1393
    @pratapjena1393 4 роки тому

    I am getting horizontal bar when adding more numbers toolbar option

  • @birajadhikari2237
    @birajadhikari2237 3 роки тому +7

    media$ is deprecated on new version, can you update the video?

    • @mdwaseemahmad7757
      @mdwaseemahmad7757 2 роки тому

      Is your problem resolved?

    • @CHAN-xn9eq
      @CHAN-xn9eq 4 місяці тому

      this.mediaObserver.asObservable()
      .subscribe((change)=>{
      this.deviceXs = change[0].mqAlias === 'sm' ? true : false
      console.log(change[0].mqAlias)
      })
      try this...

  • @vidyasagargaikwad1268
    @vidyasagargaikwad1268 3 роки тому

    Hi, Sir How did you make the sidebar and card responsive

  • @amolgode9843
    @amolgode9843 2 роки тому +1

    Plzz upload full video...........................!

  • @drakZes
    @drakZes 3 роки тому +2

    I'm in this video to learn Flex. Now you doing stuff I have never seen before in the 1st few minutes so this tut is very confusing.

  • @picflight
    @picflight 2 роки тому

    How can you soo on big screen when screen is wider than 1600?

  • @AnkitGupta-sf9pp
    @AnkitGupta-sf9pp 4 роки тому +2

    Where is next video..adding card with image

  • @Drysdev
    @Drysdev 4 роки тому +1

    Question? Flex-layout Is free or paid. Thank you

  • @rachitmaheshwari2129
    @rachitmaheshwari2129 3 роки тому

    what if I Ngoinit is already used

  • @chinnii_chiinnii
    @chinnii_chiinnii 4 роки тому +1

    where is next video

  • @AsimAli-pr6tv
    @AsimAli-pr6tv 2 роки тому

    where is next part of this video , everything is not implemented here in this video as shown in demo

  • @ekomobongudo1796
    @ekomobongudo1796 7 місяців тому

    How can I get other parts of video

  • @yashmeenzunifa2684
    @yashmeenzunifa2684 3 роки тому

    where is the 2nd part of this video

  • @atlamasthanaiah7911
    @atlamasthanaiah7911 4 роки тому

    Where is side bar
    How can I get siddebar video

  • @gkmishra2009
    @gkmishra2009 4 роки тому

    please help explain below topic of angular ->
    ChangedetecorRef
    TemplateRef
    ViewContainerRef
    ElementRef
    RXJS operators
    Host listener
    host binding
    CDK Portal
    QueryList
    DOM Portal host
    Portal template
    Application ref
    AG Grid tutorial
    Subject
    behavious subjects
    Forward Ref
    WithLatestFrom
    Content Child
    Overlay
    Overlayref
    ChildrenOutlet Context
    Navigation Extras
    NGRX
    FakeAsync

  • @vadrif-draco
    @vadrif-draco 2 роки тому

    media$ is deprecated now, what is the alternative?

    • @CHAN-xn9eq
      @CHAN-xn9eq 4 місяці тому

      this.mediaObserver.asObservable()
      .subscribe((change)=>{
      this.deviceXs = change[0].mqAlias === 'sm' ? true : false
      console.log(change[0].mqAlias)
      })
      use this

  • @streamlobby2341
    @streamlobby2341 2 роки тому

    I hope this helps

  • @amolgode9843
    @amolgode9843 2 роки тому +1

    Video not complete............................... :(

  • @amolgode9843
    @amolgode9843 2 роки тому

    2nd part is missing.....................................................!

  • @sumantamaji7498
    @sumantamaji7498 4 роки тому

    ERROR in node_modules/@angular/flex-layout/typings/module.d.ts:16:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

    This likely means that the library (@angular/flex-layout) which declares FlexLayoutModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

    16 export declare class FlexLayoutModule {
    ~~~~~~~~~~~~~~~~ how to correct this error please

  • @mearn_ctaftsman
    @mearn_ctaftsman 3 роки тому +1

    Good content but never add any such background music on technical videos, bro

  • @SureshKumarDL
    @SureshKumarDL 3 роки тому

    Bro Mobile Version?

  • @sanjayarakkan8803
    @sanjayarakkan8803 3 роки тому

    bakwaas

  • @nw_rye
    @nw_rye 2 роки тому

    Doesn't work with the latest versions of TS and Angular. Strict class initialization now requires an initializer in the constructor, and mediaObserver.media$ must be used as asObservable() instead.

    • @chickenjoy
      @chickenjoy 11 місяців тому

      How to fix? I can't proceed with the tutorial due to this error.