Git Product home page Git Product logo

dateformvalidation's Introduction

Dateformvalidation

This a test given to Salim EL Haddad by One of the two founders of the start-up Nimble ways Mr.Antoine ORY-LAMBALLE

Requirements

         =>create a web site using angular4
         =>Specification:->Two date fields and a button to submit.
                         -> When both the two dates are valid.It should display the number
                            of days between the two dates.
                         -> Styling the web site (User experience)

Project Description

the project consists of creating two input date fields,a start date and an end date. The start date should be inferior to the end date.So a function called "displayMessagesWhenTwoDatesValid" is used to make sure it's the case.it's also required to check if both dates are valid, otherwaise a message is diplayed in the page explaining the reason of the error.If the dates are both valid,then a message is displayed specifying the number of dates between the the two dates.

Details

Project structure: the project is created using angular-cli .It contains one component which is the app-comonent and one service which check for validation of the two dates. Modules used:

  • MomentModule : It is a module containing a variety of pipes . In the context of this project,it's used to compute the difference of days between the two dates entered by the user.
  • RoundPipe: used to round a float number to its closest integer.
  • Angular Material 2 : used for designing the user experience.In the context of this project ,BrowserAnimationsModule,MdButtonModule,MdDatepickerModule,MdInputModule and MdNativeDateModule.Please refer to the documentation to see their utilities in details:"https://material.angular.io/components"

dateformvalidation's People

Contributors

salimelhaddad avatar angular-cli avatar

Watchers

James Cloos avatar

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.