0.0.3 • Published 5 years ago
udemy-coupon-redirect v0.0.3
Udemy Coupon Redirect
I created this package to help make managing Udemy coupon codes easier.
Adding to Angular App
Install package.
Import module.
import { UdemyCouponRedirectModule } from 'udemy-coupon-redirect/public-api';
Add Component with courses to your template.
<lib-udemy-coupon-redirect [courses]="[{ courseKey: 'javascript', urlTitle: 'modern-javascript-from-the-beginning' }]"> <br> </lib-udemy-coupon-redirect>
Add query string 'course' to where component is that you would like to redirect to.
https://www.YourSite.com/?course=javascript
Course Model
Course model has 2 keys:
- courseKey: this is the key you provide that matches with the query string 'course' value.
- urlTitle: this is the route in the url your course normal would be on udemy. Such as '/100-algorithms-challenge' in the example. ie. 'https://www.udemy.com/course/100-algorithms-challenge/'
0.0.3
5 years ago
0.0.2
5 years ago
0.0.4-beta
5 years ago
0.0.3-beta
5 years ago
0.0.2-beta
5 years ago
0.0.1-beta
5 years ago
0.0.1
5 years ago