Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ This can be referenced in `[src/styles.css]` using following code.

## Add Spreadsheet component

Modify the template in [src/app/app.component.ts] file to render the spreadsheet component. Add the Angular Spreadsheet by using `<ejs-spreadsheet>` selector in template section of the `app.component.ts` file.
Modify the template in [src/app/app.ts] file to render the spreadsheet component. Add the Angular Spreadsheet by using `<ejs-spreadsheet>` selector in template section of the `app.ts` file.

```typescript
import { Component } from '@angular/core';
Expand All @@ -141,7 +141,7 @@ import { SpreadsheetAllModule } from '@syncfusion/ej2-angular-spreadsheet'
// specifies the template string for the Spreadsheet component
template: `<ejs-spreadsheet> </ejs-spreadsheet>`
})
export class AppComponent { }
export class App { }

```

Expand All @@ -156,8 +156,8 @@ ng serve
The following example shows a basic Spreadsheet component

{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
{% include code-snippet/spreadsheet/angular/spreadsheet-cs1/src/app.component.ts %}
{% highlight ts tabtitle="app.ts" %}
{% include code-snippet/spreadsheet/angular/spreadsheet-cs1/src/app.ts %}
{% endhighlight %}

{% highlight ts tabtitle="main.ts" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ standalone: true,
selector: 'app-root',
template: '<ejs-spreadsheet > </ejs-spreadsheet>'
})
export class AppComponent { }
export class App { }


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bootstrapApplication } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { App } from './app/app';
import 'zone.js';
bootstrapApplication(AppComponent).catch((err) => console.error(err));
bootstrapApplication(App).catch((err) => console.error(err));