How to get Copyright Symbol in the view


#1

Hi All,

Simple question.

In my view (about.html) I can do © and it works.

But if in my class I have something like:

public dataLocation: string = (“Company ©”);

I don’t see the copyright symbol. Just the “©”

Any ideas???

Simon


#2

try,

© 	

or

©

#3

Sorry, that’s the point. © doesn’t work. The copyright symbol just got displayed on the forum, so this question probably confused people.

I'm trying to put "&copy" into a member class variable, so I can use it in a view. I can't put it straight into the view itself.


#4

oh, have your tried escaping the variable. like '&copy"?

note: i guess escaping should work because it dropped the “” above should have showed

\&copy

#5

Why not look into other icon fonts?
Do you know that you can use other font files on your Ionic?

Look up a font file which has that copyright symbol.

There are some thousands of icon fonts you can use on Ionic.


http://fontello.com/

https://www.dafont.com/

Once you get them, you can install the icon font file in your SCSS just like you do on a regular CSS & html.
I’m sure one of them has a copyright symbol for you to easily use…


#6

Oh, actually FontAwesome has a copyright symbol:

http://fontawesome.io/icon/copyright/

Please install fontawesome to your ionic app and use this in your HTML.

<i class="fa fa-copyright" aria-hidden="true"></i>

This will work 100%