Organizational Research By

Surprising Reserch Topic

ng include with plain string

ng include with plain string  using -'javascript,jquery,angularjs'

I want to bind a div to plain string like

$scope.MyString = "This is my string"

I tried using this

<div ng-include="MyString"></div>

in my application but it is not adding my string there.

Can we even use plain string with ng-include? Is there any other directive to do such thing?  

This is what I want as output

This is my string

when Angular is parsing

asked Oct 13, 2015 by vimaldas2005
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.