You need to sign in to do that
Don't have an account?
❤Code
angular js + visualforce
Hi ,
I am new to Angular JS. I wrote the below code. Seems its not working. Can anyone tell where the mistake has happened.
<apex:page applyhtmltag="false" showheader="false">
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"/>
<div ng-app="app">
<div>
Name:<input ng-model="name" type="text"/>
Hello {{name}}
</div>
</div>
</apex:page>
Regards
I am new to Angular JS. I wrote the below code. Seems its not working. Can anyone tell where the mistake has happened.
<apex:page applyhtmltag="false" showheader="false">
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"/>
<div ng-app="app">
<div>
Name:<input ng-model="name" type="text"/>
Hello {{name}}
</div>
</div>
</apex:page>
Regards
Try this easy tutorial of AngularJS on Visualforce for increasing your skills: http://www.oyecode.com/2013/06/getting-started-with-angularjs-on.html
All Answers
Try this easy tutorial of AngularJS on Visualforce for increasing your skills: http://www.oyecode.com/2013/06/getting-started-with-angularjs-on.html
You missed the app definition like Enreeco said.
you must dfine the app to work angular js aplication in salesforce.
the definition will look like,
here 'app' is the name of you angular js app, it can can be any thing you want to give.
After adding definition to your code, your code will look like.
Its working,
regards
Manu K M