0.0.3 • Published 5 years ago

udemy-coupon-redirect v0.0.3

Weekly downloads
29
License
-
Repository
github
Last release
5 years ago

Udemy Coupon Redirect

I created this package to help make managing Udemy coupon codes easier.

Adding to Angular App

  1. Install package.

  2. Import module. import { UdemyCouponRedirectModule } from 'udemy-coupon-redirect/public-api';

  3. 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>

  4. 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:

  1. courseKey: this is the key you provide that matches with the query string 'course' value.
  2. 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