### Start Guided Project Creation with Ignite UI CLI Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli/getting-started-with-cli Activates the interactive guided experience for creating a new Angular project. This method simplifies the setup process by prompting the user for necessary configurations. ```shell ig ``` ```shell ig new ``` -------------------------------- ### Run the Ignite UI Angular Application Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli/getting-started-with-angular-schematics Builds the Angular application, starts a local web server, and opens the application in the default web browser using the 'start' schematic provided by Ignite UI for Angular Schematics. This command is used to preview the developed application. The Angular CLI must be installed. ```bash ng g @igniteui/angular-schematics:start ``` -------------------------------- ### Launch Ignite UI CLI Guided Setup Source: https://www.infragistics.com/products/ignite-ui-angular/angular/index Activates the Ignite UI CLI's guided setup for creating a new application. This provides an interactive way to bootstrap your project. ```bash ig ``` -------------------------------- ### Bootstrap a New Angular Project with Ignite UI Schematics Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli/getting-started-with-angular-schematics Creates a new Angular application pre-configured with Ignite UI for Angular controls using the guided experience of the schematics. This command initiates an interactive setup process. It requires the Angular CLI to be installed. ```bash ng new --collection="@igniteui/angular-schematics" ``` -------------------------------- ### Install Ignite UI Angular Schematics or CLI Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/getting-started Installs the necessary packages globally to use Ignite UI for Angular Schematics or the Ignite UI CLI for application bootstrapping. This is the first step to setting up your development environment. ```cmd npm i -g @igniteui/angular-schematics ``` ```cmd npm install -g igniteui-cli ``` -------------------------------- ### Run Angular Application with Ignite UI Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/getting-started Provides commands to serve the Angular application. Use 'ig start' if the application was created with the Ignite UI CLI, or 'ng serve' if created with the Angular CLI. ```cmd ig start ``` ```cmd ng serve ``` -------------------------------- ### Install Ignite UI CLI Globally Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli/getting-started-with-cli Installs the Ignite UI CLI globally using npm or yarn. This command is essential for accessing Ignite UI CLI functionalities on your system. Ensure you have Node.js and npm/yarn installed. ```shell npm install -g igniteui-cli ``` ```shell yarn global add igniteui-cli ``` -------------------------------- ### Create New Angular App with Ignite UI Schematics or CLI Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/getting-started Creates a new Angular application pre-configured with Ignite UI for Angular components. This streamlines the setup process, allowing you to start development quickly. ```cmd ng new --collection="@igniteui/angular-schematics" ``` ```cmd ig ``` -------------------------------- ### Angular Application Module Setup Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/spreadsheet-clipboard Configures the main application module for an Angular project using Ignite UI components. It imports necessary modules for UI, data binding, and spreadsheet functionality. ```typescript import { NgModule } from "@angular/core"; import { FormsModule } from "@angular/forms"; import { CommonModule } from "@angular/common"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { ExcelUtility } from "./ExcelUtility"; import { IgxExcelModule } from "igniteui-angular-excel"; import { IgxSpreadsheetModule } from "igniteui-angular-spreadsheet"; @NgModule({ bootstrap: [AppComponent], declarations: [ AppComponent, ], imports: [ BrowserModule, BrowserAnimationsModule, CommonModule, FormsModule, IgxExcelModule, IgxSpreadsheetModule ], providers: [ExcelUtility], schemas: [] }) export class AppModule {} ``` -------------------------------- ### Run Ignite UI Angular Application Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli/getting-started-with-cli Builds the application, starts a local web server, and opens the project in the default browser. This command is used to view and test your Ignite UI for Angular application during development. ```shell ig start ``` -------------------------------- ### Angular Spreadsheet Component Setup and Excel Loading Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/spreadsheet-clipboard Sets up the Angular component with IgxSpreadsheetComponent and loads an Excel file from a URL upon initialization. This requires importing necessary components and utilities. ```typescript import { IgxSpreadsheetComponent } from "igniteui-angular-spreadsheet"; import { SpreadsheetAction } from "igniteui-angular-spreadsheet"; import { ExcelUtility } from "./ExcelUtility"; @Component({ standalone: false, selector: "app-root", styleUrls: ["./app.component.scss"], templateUrl: "./app.component.html" }) export class AppComponent implements AfterViewInit { @ViewChild("spreadsheet", { read: IgxSpreadsheetComponent, static: true }) public spreadsheet: IgxSpreadsheetComponent; constructor() { } public ngAfterViewInit() { const excelFile = "https://dl.infragistics.com/x/excel/SalesData.xlsx"; ExcelUtility.loadFromUrl(excelFile).then((w) => { this.spreadsheet.workbook = w; }); } public cut(): void { this.spreadsheet.executeAction(SpreadsheetAction.Cut); } public copy(): void { this.spreadsheet.executeAction(SpreadsheetAction.Copy); } public paste(): void { this.spreadsheet.executeAction(SpreadsheetAction.Paste); } } ``` -------------------------------- ### Create New Angular App with Ignite UI CLI Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/angular-grid-overview-guide Installs the Ignite UI CLI globally and then uses it to bootstrap a new Angular application with Ignite UI components pre-configured. This is ideal for starting new projects from scratch. ```bash npm install –g igniteui-cli ig ``` -------------------------------- ### Install Ignite UI CLI Globally Source: https://www.infragistics.com/products/ignite-ui-angular/angular/index Installs the Ignite UI CLI tool globally using npm. This tool provides a guided experience for creating and configuring Ignite UI for Angular applications. ```bash npm install -g igniteui-cli ``` -------------------------------- ### SignalR Server Configuration - launchSettings.json Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/how-to/signal-r-service-live-data Defines the profiles for launching the ASP.NET Core application, specifying the application URLs for HTTP and HTTPS. This configuration is used by Visual Studio and `dotnet run` to start the server. Ensure the `applicationUrl` matches your development environment setup. ```json "profiles": { "WebAPI": { "commandName": "Project", "launchBrowser": false, "applicationUrl": "https://localhost:5001;http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } } } ``` -------------------------------- ### Configuring the 'start' script in package.json Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/wpf-to-angular-guide/create-first-angular-app This JSON snippet shows how the 'start' script in the 'package.json' file can be configured to automatically open the Angular application in the browser upon starting. The 'ng' command is aliased to 'ng serve -o'. ```json { "scripts": { "ng": "ng", "start": "ng serve -o" } } ``` -------------------------------- ### Install Ignite UI Grid Lite Component Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/getting-started Installs the open-source Grid Lite component for your Angular project using the Angular CLI. This component offers essential data-display features with minimal overhead. ```bash ng add igniteui-grid-lite ``` -------------------------------- ### Serving the Angular Application with Options Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/wpf-to-angular-guide/create-first-angular-app These commands are used to serve the Angular application locally. 'ng serve' starts the development server, and the '-o' flag automatically opens the application in the default browser. 'npm start' is an alternative that can be configured in 'package.json'. ```cmd ng serve ``` ```cmd ng serve -o ``` ```cmd npm start ``` -------------------------------- ### Install Ignite UI Dock Manager Component Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/getting-started Installs the premium Dock Manager component for your Angular project using the Angular CLI. This component allows users to customize application layout through movable and resizable panes. ```bash ng add igniteui-dockmanager ``` -------------------------------- ### Install SignalR for Angular Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/how-to/signal-r-service-live-data Installs the SignalR client library using npm. This is the first step to enable SignalR communication in your Angular project. ```bash npm install @microsoft/signalr ``` -------------------------------- ### Component Initialization for Angular Spreadsheet Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/spreadsheet-activation Basic Angular component setup with OnInit interface. This serves as a starting point for implementing spreadsheet-related logic within the component. ```typescript import { Component, OnInit, ViewChild } from "@angular/core"; ``` -------------------------------- ### Dynamic Component Creation Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/live-data Demonstrates the dynamic creation of DockSlot and Grid components on the fly using ComponentFactoryResolver. ```APIDOC ## POST /dynamic-components ### Description Dynamically creates and adds DockSlot and Grid components to the application at runtime using Angular's ComponentFactoryResolver. ### Method POST ### Endpoint `/dynamic-components` (Conceptual endpoint for demonstrating dynamic creation) ### Parameters #### Request Body - **componentType** (string) - Required - The type of component to create (e.g., 'DockSlot', 'IgxGrid'). - **componentConfig** (object) - Optional - Configuration options for the component. ### Request Example ```typescript // Assuming access to ComponentFactoryResolver and ViewContainerRef import { ComponentFactoryResolver, ViewContainerRef } from '@angular/core'; // ... inside a component method ... constructor(private componentFactoryResolver: ComponentFactoryResolver) {} createDockSlot(viewContainerRef: ViewContainerRef) { const factory = this.componentFactoryResolver.resolveComponentFactory(DockSlotComponent); viewContainerRef.createComponent(factory); } createIgxGrid(viewContainerRef: ViewContainerRef) { const factory = this.componentFactoryResolver.resolveComponentFactory(IgxGridComponent); viewContainerRef.createComponent(factory); } ``` ### Response #### Success Response (200) Indicates that the component was successfully created and added to the DOM. #### Response Example (No specific response body for dynamic creation, the UI is updated directly.) ``` -------------------------------- ### Install Ignite UI for Angular Schematics Globally Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli/getting-started-with-angular-schematics Installs the Ignite UI for Angular Schematics globally using npm or yarn. This makes the schematics available for use with Angular CLI commands. No external dependencies are required beyond Node.js and a package manager. ```bash npm i -g @igniteui/angular-schematics ``` ```bash yarn global add @igniteui/angular-schematics ``` -------------------------------- ### Angular Application Module Setup (TypeScript) Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/spreadsheet-chart-adapter Configures the root Angular module, importing necessary Ignite UI modules for Spreadsheet, Excel, and Spreadsheet Chart Adapter. It also declares the AppComponent and sets up basic browser and form modules. ```typescript import { NgModule } from "@angular/core"; import { FormsModule } from "@angular/forms"; import { CommonModule } from "@angular/common"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { ExcelUtility } from "./ExcelUtility"; import { IgxExcelModule } from "igniteui-angular-excel"; import { IgxSpreadsheetModule } from "igniteui-angular-spreadsheet"; import { IgxSpreadsheetChartAdapterModule } from "igniteui-angular-spreadsheet-chart-adapter"; @NgModule({ bootstrap: [AppComponent], declarations: [ AppComponent, ], imports: [ BrowserModule, BrowserAnimationsModule, CommonModule, FormsModule, IgxExcelModule, IgxSpreadsheetModule, IgxSpreadsheetChartAdapterModule ], providers: [ExcelUtility], schemas: [] }) export class AppModule {} ``` -------------------------------- ### Define IgxGrid Component in Angular Template Source: https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/getting-started Demonstrates how to define and configure an IgxGrid component within an Angular component's HTML template. It includes basic setup for data binding, width, height, and filtering. ```html
Lorem ipsum dolor sit amet, consectetur adipiscing elit.