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
11
votes
1answer
3k views

AngularJS 4 on Visualforce Pages (or in Lightning Components)?

Some time ago we used Angular 1.x on Visualforce pages for several apps. Now some of these Apps are aged and more or less in need of redesign. This redesign is not because of any actual shortcomings ...
9
votes
1answer
211 views

Angular Visualforce is freezing in IPad

Background We have a simple VF page that is made using AngularJS+Bootstrap. The page works perfect in browsers (Desktop, Mobile, Iphone and Android S1 app). There is not errors (javascript or apex)...
8
votes
3answers
3k views

Modern JavaScript Frameworks (Angular Js, React JS ) within LWC

As documented on the below link, https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.get_started_supported_javascript Lightning Web Components Javascript support includes :...
7
votes
2answers
3k views

Use of Javascript Frameworks in Lightning Web Component

Is there any documentation available for recommended JavaScript Frameworks (Angular JS, React JS, etc.), which can work well with Lightning Web Component? Most of the places, I found that it supports ...
6
votes
1answer
478 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/...
6
votes
2answers
2k views

Is it possible to use Angular and still be Lightning ready?

I've built a Lightning app and just finished my first Angular app on Salesforce yesterday. Overall, I love Angular development compared to Lightning. There is more support, docs, and a larger ...
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 ...
5
votes
1answer
737 views

How to install ngForce?

I want to try ngForce - there is one problem though - I'm pretty new to Salesforce and I really don't know how to install it. Does anybody have any tutorial or howto with install steps explained? I'...
4
votes
1answer
2k views

Javascript Remoting returning JSON with encoded characters. For example &amp

I have an @remoteaction method that returns a list of custom objects and respective child objects. On client I am using AngularJS to display this array. Since it's a remoteaction Salesforce will ...
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 ...
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/...
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 ...
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 ...
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. ...
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="{!...
4
votes
1answer
234 views

About table and SLDS

We're working in a wizard implemented in angularjs + slds. There's an autocomplete widget based on [angucomplete-alt] component and the component is embeded in a <table>. But when the user types ...
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'> &...
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
863 views

Angular Service with Remote Object

I'm getting an error that I've Googled a bunch and I'm getting nowhere. Here's the code: VF Page: <apex:page controller="registrationController" showHeader="false" sidebar="false" ...
3
votes
1answer
279 views

Site.UrlRewriter and Wildcards

I'm attempting to use Angular Routing to handle all of my public facing pages. It creates a pretty smooth experience for the customers, and I have gotten it working on my development machine, but now, ...
3
votes
2answers
368 views

How to prevent SF1 from re-writing hrefs?

I'm working on an JS on VF app that utilizes hashtag routing ie: https://c.na17.visual.force.com/apex/ionicOne#app/account/001o0000006w1pBAAQ When I Access my app via Visualforce: ie: /apex/ionicOne ...
3
votes
2answers
352 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/...
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 ...
3
votes
0answers
1k views

angularJS in lightning component

I was wondering if anyone had any example of using AngularJS in lightning components. I'm able to handel js code using static resource but getting problem in .cmp file how to use their CDATA is also ...
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
3answers
201 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 ...
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 ...
2
votes
1answer
962 views

Visualforce is not defined while using visual force remoting

I am using angular as a framework for this visualforce app, however when I try to use Visualforce remoting I get an error in the console angular.min.js:123 ReferenceError: Visualforce is not ...
2
votes
2answers
3k views

How to call a controller method from AngularJS

I'm loading the tree-view structure as shown below when the user clicks on the parent/child it spit on the console.log but i'm not sure how to pass the clicked parent/child node to apex controller ...
2
votes
1answer
503 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 ...
2
votes
2answers
2k views

decode Special Character in Angular + Visualforce

My Object label is D & B Company, this is stored in a list at some place When it comes to visualforce page in angular code, it is showing D&amp;B Company How can handle such type of special ...
2
votes
1answer
2k views

Cannot find module 'forcejs'. while using angular 2 in ionic 2

I am working as a noob on my ionic 2 / ang 2 application. I am trying to set it up to use forcejs auth implementation. Now I create a basic app following the ionic 2 tutorial here - http://...
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="...
2
votes
1answer
3k views

JSON Unexpected character ('P' (code 80)) [duplicate]

I'm working with JSON and I got this error when the page deserializes it: Unexpected character ('P' (code 80)): was expecting comma to separate OBJECT entries at [line:1, column:4074] I write you ...
2
votes
0answers
532 views

Material Design in Aura Components

Does anyone know how can I use the Google Material design in the Aura Components? I have included all the required file like fonts, icons, css and js from the static resource. But, when i try to add ...
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 ...
2
votes
0answers
511 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&...
2
votes
1answer
3k views

Remove leading and trailing white space from dynamic JSON in angularjs [closed]

I am facing issue while fetching JSON string dynamically using angularjs. Here is one instance where I am facing this issue - If a user enters any value on the UI in a textarea as follows: <...
2
votes
1answer
852 views

Problem with searching in AngularJS in Visualforce

I tried to edit this code http://www.oyecode.com/2013/06/getting-started-with-angularjs-on.html, that implements a table in angualarJS with filtering and sorting functions. Sortiting works fine but ...
1
vote
2answers
385 views

Redirecting to VF Page from Managed Package UI

I want to redirect user to a VF Page from a managed Package UI where code is written in Angular JS, <div class="slds-no-flex"> <span><button class="slds-button slds-button" onclick=...
1
vote
2answers
901 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
905 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 ...
1
vote
2answers
64 views

Change the code to reduce callback

Below is the functionality my code achieves currently Get the customer site . If customer site exists then check if latitude and longitude exist and if all is true then open the Locator with given ...
1
vote
1answer
123 views

How are lookup fields implemented with a 3rd party framework?

I am using Angular for a VisualForce page but would still like to leverage some of the VisualForce components that it provides. For example I have a lookup bound to an angular variable <apex:...
1
vote
2answers
3k views

Angular JS in Lightning Component

I am looking to use Angular JS in Lightning Component. Before starting it, just wanted to check if anyone has tried this implementation before. Is it compatible to use angular js with lightning ...
1
vote
1answer
358 views

Angular js change type of input box

I am running into an issue while determining the type of input box. I have a table in angular and when I change the type of input box it changes the type of all the input boxes in that column. I want ...
1
vote
2answers
102 views

Security question related to using AngularJS in Visualforce for a callout

I recently started learning AngularJS, and I have the following sample code that does a REST callout from a Visualforce page - the code does a successful callout. My question: In the 'app.config' ...
1
vote
1answer
53 views

What are security review's policy regarding apps that rely heavily on the REST API?

For example, if an app uses the JSforce framework to develop a page that uses AngularJS, could it be blocked because of this? I'm wondering because some parts of the code would have queries and other ...
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 ...