You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/integration_with_angular.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,35 +37,35 @@ cd my-angular-event-calendar-app
37
37
Install dependencies and start the dev server. For this, use the [**yarn**](https://yarnpkg.com/) package manager:
38
38
39
39
~~~json
40
-
yarn install
40
+
yarn
41
41
yarn start
42
42
~~~
43
43
44
44
The app should run on a localhost (for instance `http://localhost:3000`).
45
45
46
46
## Creating Event Calendar
47
47
48
-
Now you should get the DHTMLX Event Calendar code. First of all, stop the app and proceed with installing the Event Calendar package.
48
+
Now you should get the DHTMLX Event Calendar source code. First of all, stop the app and proceed with installing the Event Calendar package.
49
49
50
50
### Step 1. Package installation
51
51
52
52
Download the [**trial Event Calendar package**](/how_to_start/#installing-event-calendar-via-npm-and-yarn) and follow steps mentioned in the README file. Note that trial Event Calendar is available 30 days only.
53
53
54
54
### Step 2. Component creation
55
55
56
-
Now you need to create a component, to add an Event Calendar into the application. Create the **event-calendar** folder in the **src/app/** directory, add a new file into it and name it **event-calendar.component.ts**. Then complete the steps described below.
56
+
Now you need to create an Angular component, to add Event Calendar into the application. Create the **event-calendar** folder in the **src/app/** directory, add a new file into it and name it **event-calendar.component.ts**. Then complete the steps described below.
57
57
58
58
#### Import source files
59
59
60
60
Open the file and import Event Calendar source files. Note that:
61
61
62
-
- if you use PRO version and install the Event Calendar package from a local folder, the imported paths look like this:
62
+
- if you use PRO version and install the Event Calendar package from a local folder, the imported path looks like this:
The `this._calendar.parse(data)` method provides data reloading on each applied change.
211
+
The `parse(data)` method provides data reloading on each applied change.
212
212
213
-
Now the Event Calendar component is ready. When the element will be added to the page, it will initialize the Event Calendar object with data. You can provide necessary configuration settings as well. Visit our [Event Calendar API docs](/api/overview/properties_overview/) to check the full list of available properties.
213
+
Now the Event Calendar component is ready to use. When the element will be added to the page, it will initialize the Event Calendar with data. You can provide necessary configuration settings as well. Visit our [Event Calendar API docs](/api/overview/properties_overview/) to check the full list of available properties.
@@ -211,9 +211,9 @@ export default function CalendarComponent(props) {
211
211
}
212
212
~~~
213
213
214
-
The `calendar.parse(data)` method provides data reloading on each applied change.
214
+
The `parse(data)` method provides data reloading on each applied change.
215
215
216
-
Now the Event Calendar component is ready. When the element will be added to the page, it will initialize the Event Calendar object with data. You can provide necessary configuration settings as well. Visit our [Event Calendar API docs](/api/overview/properties_overview/) to check the full list of available properties.
216
+
Now the Event Calendar component is ready. When the element will be added to the page, it will initialize the Event Calendar with data. You can provide necessary configuration settings as well. Visit our [Event Calendar API docs](/api/overview/properties_overview/) to check the full list of available properties.
217
217
218
218
#### Handling events
219
219
@@ -239,9 +239,9 @@ useEffect(() => {
239
239
240
240
### Step 3. Adding Event Calendar into the app
241
241
242
-
To add the component into the app, open the **App.jsx** file and replace the default code with the following one:
242
+
To add the component into the app, open the **App.js** file and replace the default code with the following one:
0 commit comments