Questions tagged [angularjs]

AngularJS is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications

Filter by
Sorted by
Tagged with
0
votes
1answer
109 views

Visualforce actionFunction params not being set in Controller

I'm having trouble passing data from my AngularJS controller on my Visualforce page to the Apex Controller. I've created an actionFunction on the VF page: <apex:form> <apex:...
0
votes
1answer
162 views

How to add angularJs variable to an outputLink

I want to add an angularJs variable item.Id to the link, i tried that and it does not work: <apex:outputLink value="https://c.cs86.visual.force.com/apex/showResultQuiz?id={{item.Id}}"> it ...
1
vote
0answers
343 views

change AngularJs redirection link

I have a small problem, when i run a visualforce page(called QuizAngular) with a angularjs code inside i get the following link *****/apex/QuizAngular#/homewith a '#' added in the link which cause an ...
1
vote
1answer
880 views

How to run angularjs code in visualforce

I am trying to implement a quiz engine in my organisation and I found an open source code (angularjs) that fulfill my requirements, (you can find the project here) (a live demo here) so naturally I ...
4
votes
2answers
2k views

Salesforce and Angular 2

I have something like this in my visualforce I need to pass vars to my component because all files are in the Static Resource. which is the correct way? var opp="{!opportunity}"; var resource="{!...
1
vote
1answer
845 views

Connecting to Salesforce using AngularJS

newb here. I am trying to log in to a Salesforce account using AngularJS ForceNG and pull the data out of an object so I can post it on an Ionic page. I want to hard code the login and password, ...
2
votes
2answers
786 views

JS Remoting + Angular Ng-File-Upload

I was wondering if anyone had any examples using AngularJS + NgFileUpload and a @RemoteAction that handles base64 encoded file-data to create a drag & drop uploader? I have JS handler that works ...
1
vote
2answers
907 views

Application Cache Error event: Failed to parse manifest

I am trying to load an application built using angularjs and salesforce with offline capabality. For this functionality i am using Offline Caching Using the HTML5 manifest Attribute provided by ...
1
vote
1answer
508 views

How to make certain sections of this tree structure collapsed by default?

This is my first Salesforce project. I have created all the needed functionality, so now my work is down to styling. I've implemented a bootstrap tree structure I found online to hold my data. It ...
1
vote
0answers
97 views

Image upload in AngularJs

Is there any good practice for uploading an image through AngularJs in salesforce without using the third party plugins.
3
votes
2answers
609 views

How can I save a date field from JavaScript?

I want to save a date datatype field in salesforce from angularjs form. It is giving me error saying invalid date format. Here is my code: <div class='input-group date' id='assignWODate'> &...
0
votes
1answer
599 views

How to check for duplicate values before insert in visualforce remote objects?

How can i check for duplicate values while inserting data in salesforce using Visualforce Remote Objects. Here is my code: //Get form values. var woDetails = { Case__c: $scope.caseId, ...
0
votes
1answer
3k views

How to reset the value of page parameter of tableParams to 1 using ng-Table of angularjs?

I am using ng-Table of angularjs for searching, sorting and pagination in my application. After searching i want to reset the value of page parameter of tableParams to 1. How can i achieve the same? $...
0
votes
0answers
954 views

How to navigate using navigation menu in angular js routing on visualforce page salesforce?

I am using navigation menu in angularjs. I am unable to navigate to partial html pages. How can i achieve the same. How can i navigate to specific vf page. My folder structure is as follows; ...
1
vote
1answer
2k views

Can anyone tell me how to display Table form using angularJS ng-Table and visualforce remote objects in visualforce page using AngularJs?

I have created the Visualforce for this use case. . I get work order details in table form, but paging and filtering in not working. My code as follows <div ng-controller="searchWOController">...
2
votes
1answer
504 views

AngularJS routing in VF page giving error

I am trying to use AngularJs routing in Visualforce page. I have my file structure as mentioned below: -AngularApp (static resource) -app ---controllers ---directives ---services ---views --app.js I ...
1
vote
1answer
242 views

oAuth2 auth from AngularJS for Chatter API with AngularJS

I have an AngularJS app in a VF page which will be interacting with the ChatterAPI. Obviously just making a request with Resource returns a 403 since I am not authenticated. The only info I can find ...
0
votes
1answer
540 views

How can i get case ID in VF page from a custom object? [closed]

I have created a custom object work_order__c in this custom object i have created a case field as a master-detail to work_order__c. How can i get the case id in VF page for saving the workorder? I am ...
2
votes
1answer
678 views

Angularjs not rendering with Visualforce Remoting

I am not sure where the error is but my angularjs is not being detected. Below is my HTML and Angularjs <apex:page controller="ApexRemoteInvokeManagerController" docType="html-5.0" sidebar="...
1
vote
0answers
650 views

How to show a custom label with an empty value in an option of select tag in Angularjs in vf page?

I hav a problem when I create a picklist with angular in Visualforce Page. The code is below. Javascript $scope.plApp = {countries: ["UK", "AU", "US"], ctry: ""}; Markup <select class="...
6
votes
1answer
481 views

Native JS Map prototype is overwritten in Visualforce page w/ a header

I've been exploring implementing Angular 2.0 in Salesforce custom pages and found that if I set showHeader=true in the VF page, I run into some issues. It looks like including the header loads "sfdc/...
1
vote
1answer
912 views

AngularJS router loads contet but does not change the URL in the browser

I am currently developing a single page application on Salesforce. I have used ngRoute to navigate the user through the website. I've created a visualforce page and immidietly ran into a problem - on ...
0
votes
2answers
350 views

How to become productive with Salesforce SPA development quickly?

We are a team of software developers proficient in standard front-end technologies such as AngularJS and RESTful APIs, etc. We are now starting a project on the Salesforce platform that mostly needs ...
2
votes
1answer
95 views

remoteObjectModel with Angular: Transform get() to dot notation

I have defined an <apex:remoteObjectModel> in my .page file and can access custom objects through new SObjectModel.ObjectName().retrieve(). However, the fields in these objects are accessed as ...
4
votes
3answers
1k views

New to Using Remote Action with Angular JS

I need help with this code can someone please suggest what must I do to bring the names of contacts in the table on page load. What I have done is I saw this http://www.saaspie.com/2015/03/27/...
1
vote
0answers
77 views

Grunt Failed to send request to test.salesforce.com while installing ngForce

I am pretty new to salesforce. Just trying to install the Angular ngForce into my developer edition of salesforce, I am getting the error as below "BUILD FAILED C:\salesforce.training\...
0
votes
0answers
3k views

Angular Js ng-click issue. Function called only on second click

I am dynamically creating an html in a callback function and placing it into a directive. In the directive I run compile so that my dynamic html can be part of my angular ecosystem. The problem is ...
1
vote
0answers
153 views

Create a modal with angular and VF

I want to create a modal window where I can use input fields etc but all these should be in a modal like https://angular-ui.github.io/bootstrap/#/modal I am currently facing issue same as "Error:...
4
votes
2answers
7k views

“Error: [$parse:syntax] Syntax Error: Token ':' is an unexpected token at column” Angular with Visualforce

I am trying some code related to Angular with Visualforce. Here I am trying to implement modal in https://angular-ui.github.io/bootstrap/#/modal Now when I use a templateURL and give a new apex as ...
1
vote
0answers
46 views

angular resource in managed package

My company has a set of reusable angular directives in a managed package. I want to use them in my app but it doesn't seem to be working. The directive in question is a datapicker. that looks like ...
0
votes
1answer
620 views

Issue with Visualforce with remote objects and angularjs

The data is being retrieved but is not updating the bind variables on the page below is the url to VF page that i am using . https://vffiddle.herokuapp.com/945# Please advise . Thanks, Sandeep ...
1
vote
1answer
148 views

Angular routeProvider vs UI-Router

Can you use Angular routeProvider with Salesforce? I am having trouble rendering views that are located in the static resources zip. Would it be better to use UI Router?
1
vote
0answers
126 views

How to get cloud service TabId in angularJS visualforce page

I have added visualforce page in service cloud console app and the page developed with AngularJS. Facing an issue with to not getting the opened tab id in my angularJS page. <apex:page > ...
2
votes
0answers
512 views

ng-bind-html doesn't work with CaseComponent.CommentBody

Could anyone please help me figure out why ng-bind-html doesn't work with CaseComponents.CommentBody? <table class="table table-hover"> <thead> <tr> <th&...
4
votes
1answer
171 views

AngularJS and VisualForce/SFDC

I am curious how people handle the angular templating engine while using visualforce. The issue is that if you have a static resource and you use a templateUrl for a directive, or even a route. ...
0
votes
1answer
446 views

includeScript gets 401 (Unauthorized) on Force.com site; working fine on Preview of VisualForce Page

I am working on an AngularJS SPA app in a developer org. I have the app running fine when I click 'Preview' from the VisualForce Page, but when I put this same page in a Force.com site, I am getting a ...
3
votes
2answers
353 views

received the code but not able to get access token in Salesforce using angular js

I am a beginner in angular js and Salesforce. I am trying to build an application which implements the give link step by step. https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/...
1
vote
1answer
579 views

Populating Jasmine Angular controller variable before test starts

I am trying to run some tests for some basic angular code that I have written. You can refer to this post for controller code details - https://wordpress.com/read/post/feed/37884742/822834869 But ...
3
votes
0answers
123 views

I can't patch a salesforce object using angular and REST api

I'm trying to patch a salesforce object using angular, but am getting no where. Every time I get a nondescript error. salesforce.patch = function(resource, contentType, data) { var http = angular....
3
votes
1answer
524 views

Angular / Aura / Bootstrap - How to decide?

With the advent of aura framework, I was wondering how to decide if I want to go ahead with aura framework or may be I want to create with tried and tested angular with bootstrap framework for my ...
3
votes
1answer
707 views

JS remoting not working with Angular code

I am trying to do a simple remoting code base along with auto update to angular table. BUt if I call a remote method as it is async, it gets called late and even though I try to push data in my ...
0
votes
3answers
19k views

Simple Angular function returning as string [closed]

I am trying to create a simple Angular code base where I am trying to concatenate 2 different values in a angular controller method, but it returns the complete method as its value rather than ...
-1
votes
1answer
743 views

I am unable to read in AngularJS, as it is a lookup to user i used apex input field

<apex:inputField id="lookup" value="{!surveyObj.User__c}" style="width: 300px;" html-placeholder="select The User from the Lookup"><br/><br/> this is the lookup to user, and i wanna ...
5
votes
1answer
2k views

using angularui ui-router, how can I reference inline angularjs templates in a visualforce page?

I have a question similar to Visualforce + Angular JS, ui-router not working; however, I'm looking to access inline templates, but cannot do so even though there are no console errors. I've converted ...
4
votes
3answers
2k views

AngularJS with Salesforce

This is probably the most basic question. How do i get started with AngularJS in Salesforce. I need to build a SPA using angularJS. I can learn angularJS, there are plenty of tutorials. But how do i ...
3
votes
3answers
202 views

Salesforce and JS framework

I just want clear answer, someone told me that using JS framework on salesforce is being discouraged. What and Why? By the way AngularJS is a JS framework and it's on Dreamforce Video.
3
votes
0answers
408 views

Using Polymer for Material Design in VisualForce Pages?

I am thinking of using Google's Polymer Library to provide Material Design in apps. Google Polymer Library I have a few questions?: Is it compatible with Salesforce? If yes, is there any running ...
4
votes
2answers
1k views

How to overcome delay in data load when using AngularJS in a VF page

I have a VF page that uses the AngularJS framework. I am not convinced that I am initializing my page correctly and would like to know what best practice actually is. Current page init process VF ...
0
votes
1answer
959 views

Using apex:Component within Angular Repeat

I have done a VF Page which pulls data through RemoteAction Methods and display it. On clicking the row ,jumptron should display its related information whose logic resides in a apex:component. All ...
1
vote
1answer
742 views

Set html tab as active on window reload

I am using the html tab tag to show different tabs in my salesforce page. When I am on my second tab, an operation requires me to reload the window. I use window.loaction.reload() for the same. But ...