This repository contains an Angular browser app and 500+ examples on how to use Ignite UI for Angular components:
You can run each sample project individually from the ./samples folder or you can browse all samples in one website from the ./browser folder.
NOTE: You should use master branch of this repository if you want to run samples on your computer. Use the vnext branch only when you want to contribute new samples to this repository.
You can preview and browse all samples in this repository by opening our Angular Samples Browser. Alternatively, you you can view these samples with detailed information in our Angular Help Documentation.
In addition, you can run each sample project individually from the ./samples folder or you can run from the ./browser folder to browse all samples in one website (see instructions below).
To set up this project locally, clone this repository:
git clone https://github.com/IgniteUI/igniteui-angular-examples.git
check out the master branch
in VS Code, open a folder with existing sample, e.g.
./samples/charts/category-chart/axis-options/
type npm install --legacy-peer-deps
command in terminal window
type npm run start
command in terminal window
Wait until the build is completed and then open http://localhost:4200 in your browser.
At this point, you should see a website hosted example of Ignite UI for Angular component
check out the master branch
open VS Code as Administrator
open the folder that contains this repository, e.g.
C:\GitHub\igniteui-angular-examples\
select View - Terminal menu item
type npm install --legacy-peer-deps
command in terminal window
This will install required packages and Ignite UI for Angular packages
npm run start
command in terminal window to start this application locallyNote this application copies all individually sample projects from ./samples to ./browser/src folder when it is about to start running. Therefore, any changes to ./browser/src will be overridden on consecutive run of the application.
Wait until the build is completed and then open http://localhost:4200 in your browser. You should see a website with navigation menu for browning all samples in this repository.
To learn more about Ignite UI for Angular components, check out the Angular documentation.
Perform these steps to update version of Ignite UI for Angular packages in all samples. NOTE that the order of these steps is very important.
updateIG
functionpackageUpgrades
arraycd browser
commandgulp updateIG
commandnpm install --legacy-peer-deps
command