D
D
Dmitry2016-11-25 17:05:01
Angular
Dmitry, 2016-11-25 17:05:01

What function replaces html in a block?

There is a field with the inscription "EMPTY" in it,
I wanted to send the nickname {{username}} there through replace.
But for some reason it doesn't work.
The option was with ng-bind-html, for some reason it didn’t work out either ..
tell me how can this be done?
in jquery it was elementary, addressed to (#id).html('I am writing my html')
how to do something similar in angler 1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Kayun, 2016-11-25
@Kayun

You need to define the username field in the controller.
Well, check if angular works for you at all, something like {{1+1}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question