javascript - ngBindHtml doesn't work with ngSanitize -


I'm a newbie on Angular.js so I know this is a very basic question but here's the place to get the answer only Looks like Angular.js for questions

  ; Doctype html & gt; & Lt; Html ng-app = "example" & gt; & Lt; Top & gt; & Lt; Script src = "angular.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "angular.sanitize.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; Var example = angular Modules ("Examples", ['NGSanatijk']); Example.controller ("exampleCtrl", function ($ scope) {$ scope.appTitle = "& lt; b & gt; example glass app ";}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body ng-controller = "exampleCtrl" & gt; & Lt; H1ng-bind-html = "appTitle" & gt; & Lt; / H1> & Lt; / Body & gt; & Lt; / Html & gt;  

I follow the book of Rodrigo Branas (Fingerstone Essentials). He uses the word "parking" as the name of the variable rather than "example".

I do not know what angular. Updates for Js etc.? $ $

  & lt ; H1 & gt; {{AppTitle}} & lt; / H1>  

Check this Bela:


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -