10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Mandar Shinde
1.7k
423
85.1k
Could not able use jquery functions in Angular 6
Jul 5 2019 8:01 AM
Dear All,
I was developed small project using Angular 6 and ASP .Net MVC 5 with Rest API.
I was trying to use jquery function like datepicker and datatable which is I am not able to use it.
I have used following steps
npm install jquery — save
in Angular.json :-
"scripts": [ "../node_modules/jquery/dist/jquery.min.js" ]
in typescript file :-
import * as $ from 'jquery';
ngOnInit() {
$(document).ready(function () {
$(
"#demo"
).datepicker({
dateFormat:
"yyyy-mm-dd"
});
});
}
I am getting error when I am running above code.
Please let me know easy solution on this problem.
Thank you in advanced
Regards.
Reply
Answers (
2
)
how get Two date Diff in jquery
how to save dynamically added div in another html file ?