import{Calendar}from'@syncfusion/ej2-calendars';//creates a calendar with weekNumber enabledletcalendarObject: Calendar=newCalendar({//sets the weekNumberweekNumber: true});calendarObject.appendTo('#element');
<!DOCTYPE html><htmllang="en"><head><title>Essential JS 2 Calendar control</title><metacharset="utf-8"/><metaname="viewport"content="width=device-width, initial-scale=1.0"/><metaname="description"content="Typescript UI Controls"/><metaname="author"content="Syncfusion"/><!--style reference from the Calendar component--><linkhref="https://cdn.syncfusion.com/ej2/25.1.35/ej2-base/styles/material.css"rel="stylesheet"/><linkhref="https://cdn.syncfusion.com/ej2/25.1.35/ej2-buttons/styles/material.css"rel="stylesheet"/><linkhref="https://cdn.syncfusion.com/ej2/25.1.35/ej2-calendars/styles/material.css"rel="stylesheet"/><!--style reference from app--><linkhref="styles.css"rel="stylesheet"/><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js"></script><scriptsrc="systemjs.config.js"></script><scriptsrc="https://cdn.syncfusion.com/ej2/syncfusion-helper.js"type ="text/javascript"></script></head><body><divid='loader'>LOADING....</div><divid='container'><!--element which is going to render the Calendar--><divid='element'></div></div></body></html>