261,634 questions
0 votes
0 answers
23 views
WKWebView: CDVWKWebViewFileXhr not found when using Salesforce SDK 13.1.0(Cordova iOS 7.1.1)
Issue Description When building a Salesforce Hybrid Cordova app with SDK 13.0.2 and Cordova iOS 7.1.1, the app fails with the error: Steps to Reproduce Create new Salesforce hybrid Cordova project. ...
-1 votes
0 answers
43 views
ng-cloak stuck in hidden state
In an AngularJS app I am working on, there is a div looking like this: <div ng-cloak> The context seems fine and it should work. However when running the app in dev mode (with Vite) the content ...
3426 votes
30 answers
786k views
AngularJS: Service vs provider vs factory
What are the differences between a Service, Provider and Factory in AngularJS?
4500 votes
15 answers
857k views
"Thinking in AngularJS" if I have a jQuery background? [closed]
Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the paradigm shift that is necessary? Here are a few questions that ...
774 votes
33 answers
654k views
How to set focus on input field?
What is the 'Angular way' to set focus on input field in AngularJS? More specific requirements: When a Modal is opened, set focus on a predefined <input> inside this Modal. Every time <input&...
1318 votes
20 answers
676k views
How do I access the $scope variable in browser's console using AngularJS?
I would like to access my $scope variable in Chrome's JavaScript console. How do I do that? I can neither see $scope nor the name of my module myapp in the console as variables.
1203 votes
23 answers
783k views
What is the best way to conditionally apply a class?
Lets say you have an array that is rendered in a ul with an li for each element and a property on the controller called selectedIndex. What would be the best way to add a class to the li with the ...
868 votes
28 answers
470k views
AngularJS : Prevent error $digest already in progress when calling $scope.$apply()
I'm finding that I need to update my page to my scope manually more and more since building an application in angular. The only way I know of to do this is to call $apply() from the scope of my ...
-1 votes
1 answer
65 views
Data from html disappears and doesn't not post using rest api call. When submit button is selected the form clears and data is not submitted
I have a basic HTML form that submits data to a SharePoint list. There are no errors in the code, nor do I receive anything that would cause the form not to submit to the SharePoint list. I am using ...
2051 votes
14 answers
360k views
How does data binding work in AngularJS?
How does data binding work in the AngularJS framework? I haven't found technical details on their site. It's more or less clear how it works when data is propagated from view to model. But how does ...
0 votes
0 answers
39 views
Uncaught Error: [$injector:modulerr] received while attempting to run angular app
I receive the following error "Uncaught Error: [$injector:modulerr]" while running the following app. The code is designed to submit the data received to a SharePoint list when the submit ...
1114 votes
15 answers
272k views
What is the difference between angular-route and angular-ui-router?
I'm planning to use AngularJS in my big applications. I'm in the process to find out the right modules to use. What is the difference between ngRoute (angular-route.js) and ui-router (angular-ui-...
298 votes
34 answers
522k views
ERROR in Cannot find module 'node-sass'
Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3 When I run npm start in my angularjs project I get this error: ERROR in Cannot find module 'node-sass' After this I run: npm i node-...
1111 votes
18 answers
571k views
What is the difference between '@' and '=' in directive scope in AngularJS?
I've read the AngularJS documentation on the topic carefully, and then fiddled around with a directive. Here's the fiddle. And here are some relevant snippets: From the HTML: <pane bi-title="...
907 votes
12 answers
623k views
Working with $scope.$emit and $scope.$on
How can I send my $scope object from one controller to another using .$emit and .$on methods? function firstCtrl($scope) { $scope.$emit('someEvent', [1,2,3]); } function secondCtrl($scope) { ...