How can I set the max date for today instead of 2018-03-07 dynamically? I tried following methods- Class – but no luck. Answer Try this: Working Example Demo Reason: Because when you are using new Date() this will give you full date with time zone and time etc, you have to assign only Date so you have to split this
Tag: ionic2
using external JS libraries in my angular 2 project
I need to use this JS library in my angular 2 project this question may be duplicate with me , but no answer worked for me I tried to include the library as script tag in my index.html page It always does not see it http://localhost:8100/PrayTimes.js file is not exist also I wrote this code above I tried to use