Giter Club home page Giter Club logo

ngx-mat-tui-calendar's People

Contributors

ron2015schmitt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

ngx-mat-tui-calendar's Issues

Calendar UI not rendering correctly

Hi there,
I have spent weeks on this issue, but I haven't been able to resolve it myself.
I think I am doing something wrong and it is causing the calendar to render as you see below. All the rows of the calendar are squished together.
image
I have created a separate project where I think I have isolated the problem. I have literally copied the package.json, app component and template files and the app module file from the project within this Github.

I would really appreciate any help with this issue as I have been completely stuck with this for a while.

I am compiling my code with:
ng serve --open

And here is the output from the compiler when the site is run on localhost:

ng serve --open
- Generating browser application bundles (phase: setup)...
โˆš Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   8.03 MB |
styles.css, styles.js | styles        | 460.63 kB |
polyfills.js          | polyfills     | 318.57 kB |
main.js               | main          | 124.41 kB |
runtime.js            | runtime       |   6.55 kB |

| Initial Total |   8.92 MB

...

Warning: C:\Users\****\Documents\****************\***************************\projects\ngx-mat-tui-calendar\src\lib\ngx-mat-tui-calendar-editor-dialog\ngx-mat-tui-calendar-editor-dialog.component.ts depends on 'tui-calendar'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: C:\Users\****\Documents\****************\***************************\projects\ngx-mat-tui-calendar\src\lib\ngx-mat-tui-calendar.component.ts depends on 'distinct-colors'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Error when importing the NgxMatTuiCalendarModule from a lazy loaded module

In this scenario I get the below error

Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.

Looking a bit the angular documentation, it seems the BrowserModule should only be loaded once by the main module and since it is also being imported within the NgxMatTuiCalendarModule I must only import NgxMatTuiCalendarModule in the app.module, the problem with that is that the initial bundle size increases almost 1MB mainly because of the tui-calendar

Big initial bundle size is not good for the UX since it takes more time to load on bad internet connections or low end devices, it also decreases the score for google SEO.

Can we have support lazy loading ?

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.