Developers
Setup
Once you are setup, you can use the project template to quickly get started.
View project templatesAngular UI components
This is the web component library and utilizes Angular's web component integration.
1. Add Dependencies
2. Link ionicons in app/index.html Add the following in the head element
3. Update src/app/app.module.ts as per the four steps below
4. Add the styles link in the src/styles.css file
React UI components
This library contains React components which wrap the Government of Alberta Web Components.
1. Add Dependencies
2. Link ionicons in app/index.html Add the following to the head element
3. Import the web-component styles in the src/index.css file
Web components
This library contains react components from the Government of Alberta.
1. Add Dependencies
2. Link ionicons in index.html Add the following in the head element
3. Import the web-components into src/main.js:
4. Add the styles link in the src/assets/main.css file or wherever your main css file is located:
Angular/React templates
To use the templates, follow these steps:
- Click the green Use this template button
- Select Create a new repository
- Select an owner and give the repo a suitable name for your project
- Select either Public or Private
- Click the button Create repository from template
- Clone the repo onto your machine
- Using a terminal of some kind, go into the directory you created and run the following commands (in order):
npm i
npm run build
npm run start # Angular
npm run dev # React
- Go to the listed port number of your localhost
Book time in drop in hours