flex-calendar | An Elegant Calendar built with Angular.js | Calendar library
kandi X-RAY | flex-calendar Summary
kandi X-RAY | flex-calendar Summary
An Elegant Calendar built with Angular.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flex-calendar
flex-calendar Key Features
flex-calendar Examples and Code Snippets
Community Discussions
Trending Discussions on flex-calendar
QUESTION
I have an application with a user object where all the user information is stored and is updated with an observable that is given from the userService. Now am I wondering what the best practice is for using that user observable with components?
I have a page (TestPage) with a calendar component (Calendar). The calendar makes use of the user object because it must know of it has the show the week view or the month view.
Option 1:
The first option is to create one observable in the TestPage and gives the user object with a property and then in the Calendar, it gets the User with @input
.
TestPage typescript file:
...ANSWER
Answered 2017-Jan-05 at 10:39I believe the first option is better than the second option as with first option the dependencies are explicit and only component is only dependent on the input model.As long as the input can be provided the calendar component can be used anywhere. The calendar component acts more as a dumb component.
Search about the smart and dumb component pattern to get a better idea how components can be designed for complex UI.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flex-calendar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page