Posts

Showing posts from September, 2014

AngularJS in visualforce Pages With Data

Why This Post? In my  Previous post  , We have gone through AngularJS setup , Here is the our next step towards it . We will use few angularJS tags to make data search very easy over visualforce page. Here is the sample code for same with explanation in comments. <!- Visualforce Page Start--> <apex:page >     <script>         <!- AngularJS static resource inclusion -->         <apex:includeScript value="{!$Resource.AngularJS}"/>                       <!- Registers the area for which angularJS would work-->             var app = angular.module('myApp',[]);             <!- Creates a controller and bing with above area-->             app.controller("AccountController", function($scope) {             $scope.fastFriends= {};                             <!-Supply a list of friends in the form of javascript object array-->               $scope.fastFriends.names=  [ {name: &quo

AngularJS in Visualforce Pages Setup

About AngularJS : As we know AngularJS is one of the powerful javascript framework among various javascript frameworks, which simplifies our front end javascript, It uses MVC architecture to break down front end code . Front end code refers to all our HTML,javascript,CSS code . There are lot of good things about this framework, so i thought to learn this and use in my visualforce pages .                                                                               AngulasJS teaches HTML new tricks . Why this Post? Now a days our end users using salesforce asks us for Jazzy UI , moreover they want to say that they are not happy with traditional visualforce pages .Either they are not happy with page load times, transition between multiple pages ,UI/UX,Responsive nature of page,or their reps spending lot of time on pages to do operations. so there is a need for heavy front end pages which solves all the above problems.We will create SPA (single page application) HTML 5 tags to creat