BioPhoton / BioPhoton/angular1-star-rating

Unable to specify custom location of star-rating.icons.svg

Open
#54 3 comments 11 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
19
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Location defaults to "assets/images/" which is not usable for some websites.

It seems the only way to change this is to alter star-rating.controller.ts and compile to javascript.

How would I specify a custom location (ideally for the pre-compiled js version) that persists between package updates as star-rating.controller.ts will get overwritten?

Alternatively, should I give up on using SVGs and just use icons instead?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing star-rating.controller.ts and the package's pre-compiled JavaScript to trace where assets/images/star-rating.icons.svg is selected. The issue is complete when users can specify a custom SVG location without editing source files, and the setting remains usable after package updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.