B
B
become_iron2016-12-16 00:53:18
css
become_iron, 2016-12-16 00:53:18

How to implement dynamic font change?

It is required to implement dynamic font change. Those.
the user selects a font from the drop-down list, and then certain elements of the site change their font accordingly. to the whole site ), and then change it through js. But I did not find a way to do this
. How can I implement this most conveniently and correctly? I am using Angular 2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepanya, 2016-12-16
@Stepanya

Add a tag to the head, something like this

<style>.font { font-family: {{$ctrl.font}};}</style>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question