Questions tagged [angularjs]

AngularJS, commonly referred to as Angular, is an open-source web application framework, maintained by Google.

Filter by
Sorted by
Tagged with
4
votes
2answers
2k views

How to get the content from a Multiline text box using Angular JS

I am trying to retrieve value from a multi line textbox using angular js, but am getting the div tags attached to the content. How can we retrieve only the content? I have used following code: var ...
4
votes
4answers
7k views

How to retrieve sharepoint list items attachments URL along with all other fields using REST API

PFB the code: $.ajax({ url: _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists/GetByTitle('List Name')/items", type: "GET", headers: { "accept": "application/json;...
4
votes
2answers
432 views

Development using JS/Angular js in Sharepoint 2013 without access to Sharepoint Designer

I have a little bit of a challenge here. I am attempting to create a dynamic javascript form in angular js with SharePoint but unfortunately do not have access to SharePoint Designer due to it being ...
4
votes
2answers
675 views

modify sharepoint hosted app files without having to redeploy app

I have a SharePoint Online hosted app that I'm building that is an angular app. Typically i start the app out by doing all the angular UI stuff just using local development so I am able to easily ...
4
votes
3answers
303 views

Filter Calendar list view using jquery/restapi/angularjs

I have a SharePoint 2013 Calendar list view in a page, also I have a filter with some choice values. Now based on the filter value, the SharePoint Calendar list view should be filtered . I am not ...
4
votes
1answer
256 views

Using REST api to detect when server is finished processing changes to list

SOLUTION FOUND As it turns out the simplest solution ever was to use simply forgo any of the following code and do this var posts = /*All the queries that will update your list*/ $q.all(posts).then(...
4
votes
0answers
344 views

Using JSOM calls with Angular 4

I have to port an AngularJS app to Angular4 which now uses promises and have no clue how I can use this with the executeQueryAsync() method from JSOM. I have also not found any documentation to this ...
3
votes
2answers
3k views

PageContext in SharePoint Framework

We all know that _spPageContextInfo is a very useful thing in Client side development. I need something equivalent of _spPageContextInfo in SPFX. Currently I am unable to use it directly from ...
3
votes
2answers
4k views

How to get choice field choices using REST Api in SharePoint 2013

I have a choice field Status with choice values Approved,Rejected and Hold. How do I retrieve these choices using REST Api? PFB the code: $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + "...
3
votes
2answers
2k views

SharePoint REST get column LikedBy with method GetFolderByServerRelativeUrl to library

I created a library with images, there are many folders and into folder there are one or many images. I need get the likes(rating) of the image by current user. Please help me to find the likedby in ...
3
votes
1answer
4k views

SP.RequestExecutor is undefined for angular controller

This is a sharepoint hosted app where I am trying to use the Sharepoint Request Executor to make a REST API Call to the host web to get list items. The code is however failing on the file: ...
3
votes
2answers
791 views

SPFX Client WebPart with Angularjs and OfficeUiFabric

Iam strugling to use OfficeUIFbric in my Client WebPart with AngularJS. I first created the webpart as "No javaScript web framework", and then i added angularJS as described in this article , webpart ...
3
votes
2answers
998 views

Creating SharePoint List form with HTML

I want to create a form to be filled by users and when the form is submitted I will store the input data in a SharePoint list. So far I have been using either default SharePoint list forms or Infopath ...
3
votes
2answers
1k views

How to create a Sharepoint Hosted App with AngularJS and keep the Sharepoint Look and Feel

I am having the following issue. I have a mini SPA with an option to view products, edit and create. The SPA I created using the default .aspx page that comes when you add a new Item (Page), into a ...
3
votes
1answer
370 views

Has anyone gotten much use out of Angular 2 in SharePoint?

Has anyone gotten much use out of Angular 2 in SharePoint? I'm curious about the benefits of using Angular 2 in SP (onPrem), but it seems the setup time makes it not worth it vs Angular 1. Anyone ...
3
votes
2answers
310 views

AngularJS - Problems with ng-click

Following Angular Code does not work in SharePoint 2013 - On my local Machine it runs perfectly: <div ng-init="value = 'off'"> <button ng-click="value = { 'on': 'off', 'off':'on'}[value]">...
3
votes
1answer
83 views

Sharepoint 2013 IE shows different URL

When I open my SP with Internet Explorer and navigate through my navigation, IE always shows an other URL as the link has (always add the link with a # at the end of the URL) - Please see picture ...
3
votes
1answer
237 views

How to open an Office file in the client software programatically in SharePoint Online?

I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open the document directly to the client Office app. The SP hosted app is made ...
3
votes
1answer
436 views

HTML5/JavaScript Form with Complex Field Types

I am developing a responsive Website on top of SharePoint using Angular and have a few list forms that I need to establish. For fields such as text and date via saving or updating against the REST API,...
3
votes
0answers
225 views

ng-quill with SharePoint AddIn not working

I am trying to use ng-quill with SharePoint AddIn but it's giving me errors, SCRIPT5022: [Parchment] Invalid definition quill.js (244,9) SCRIPT256: This command is not supported. quill.js (7451,3)...
3
votes
0answers
1k views

how to implement the lastest angular 2 version with sharepoint hosted add-ins

Hi I'm trying to implement angular 2 within a sharepoint hosted app, I followed the scot hillier's article Build a SharePoint Add-In with Angular2 and TypeScript but it's a little old and I'm having ...
2
votes
1answer
683 views

SPFx adal acquire token renewal failed

I have created an angular-adal SPFx project, now when I'm trying to acquire the token. It always displays a message: Token renewal operation failed due to timeout adal.acquireToken("Dynamic 365 ...
2
votes
1answer
834 views

Modify/Access webpart properties in SharePoint Framework (Spfx)

I am trying to saving some value in the Web part properties. I know in Spfx you can save or update any value in webpart property like this.properties.myProp = "newValue"; I am using angular ...
2
votes
2answers
1k views

PageContextInfo: Page Context is undefined in sharepoint framework (Webpart)

I am trying to upgrade an old sharepoint project to the latest sharepoint framework. The client part is built with angular. As in spfx _spPageContextInfo is not available so I tired changing the code ...
2
votes
2answers
305 views

SharePoint Randomly Adding Code nbsp

So just now, I had a bug in my site that caused my custom navigation bar's buttons to be sized and spaced incorrectly. I had no idea where this bug came from, and had to search around for awhile to ...
2
votes
3answers
4k views

Update attachment of list item using rest api is failing

I am trying to update attachment of list item using REST API. I am getting the below error: {"error":{"code":"-2130575257, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The ...
2
votes
1answer
33 views

Display none in table row

How can I do a display none in div with id="NoveMeses" if all elements from h3 show "N.A"? If h3 from div row1 and row2 show me the span="N.A", I want to display none the div NoveMeses. There is my ...
2
votes
1answer
70 views

issues when ensuring user before creating list item ECMA CSOM

I have a custom angular JS form for my list in a SP hosted app and i am facing a challenge when i need to set the user field value due to JS async been... out of sync. So specifically when the user ...
2
votes
1answer
2k views

How to upload large files through SharePoint Rest API (Cross Domain Call)

I am trying to upload large files greater than 10MB(Ex: 40 MB) through SharePoint cross domain Rest API calls. I am able to upload files that are upto 10MB using the code below. But when it comes to ...
2
votes
1answer
382 views

Sharepoint 2010 And Angularjs

I am building an application in AngularJs (Front End). I would like to make it Dynamic using $route etc. The back end consists of a SharePoint 2010 Server with Categories, Look Ups, etc. I have been ...
2
votes
1answer
394 views

Get exception messages from a custom SharePoint REST service

I am experiencing some difficulties in managing errors raised from a custom REST web service deployed to SharePoint ISAPI folder I developed. My service is pretty simple. I deployed an .svc file to ...
2
votes
1answer
5k views

REST update not working

I am having problems updating list items using REST calls within an angularjs SPA. I've tried HTTP and ajax methods but both do not work and give different errors. (I am only trying to update ...
2
votes
1answer
506 views

Best JS framework(Angular/React/Vue) to use in SharePoint 2013 [closed]

We have tools (Basically CRUD operations in multiple lists across sites/site collections. Handles large amount of data and has lots of business functionalities/logic) that were built using jQuery and ...
2
votes
0answers
269 views

Webpart built using latest spfx version not working on the classic site

I have built an angular 1.x webpart application using the spfx 1.4 version. The webpart works in the modern sites pages but is not working on the classic site pages and I am getting the following ...
2
votes
1answer
2k views

Download multiple files as separate downloads

I am using C# at the backend and angularJS at the front. I have a requirement of downloading multiple files as separate downloads. Currently what I do is if there is multiple folder/files to be ...
1
vote
2answers
53 views

Call function when press ENTER [closed]

I've this code below: <div class="search-container"> <input id="search-value" type="text" autocomplete="off" ng-model="vm.searchQuery" ng-focus="vm.searchBoxHasFocus = true" ng-blur="vm....
1
vote
2answers
660 views

How to get all properties of a Site Page using REST API?

I am writing an application in AngularJS for a SharePoint 2013 site collection, using the REST API to talk to SharePoint. My task is to update the Image Link in the Title Bar Properties of every Web ...
1
vote
3answers
1k views

Use AngularJS on Sharepoint Online 365

I'm a computer science student and I realized in my last sandwich training, the company i work on use SharePoint Online and I must create a custom application for the company. This application will be ...
1
vote
1answer
756 views

How can I implement Angular 2 routing in an SPFX webpart

How can I use Angular 2 in SPFX? I appreciate its not out of beta quite yet but I have found it to be excellent for 'larger' apps. Especially RC5 which provides a new ngModule decorator. Using this ...
1
vote
2answers
526 views

Get AssignedTo.FirstName with REST not working

How do I get the value of AssignedTo.FirstName with REST ( AJAX ) ? I use Angular ! Other columns , it works as it should , but not AssignedTo column ! URL/_api/web/lists/getbytitle('Tet')/Items?$...
1
vote
1answer
932 views

AngularJS with Sharepoint 2010 not working

we're testing our custom webparts using angular.js in Sharepoin 2013 it works but not within our SP 2010 Environment the needed angular and jquery library are linked correctly As test code in the ...
1
vote
2answers
123 views

SharePoint with AngularJS and Angular

I dont have access to the server side scripting or Farm administration. I have access to only Client Side Scripting & technologies. I have found AngularJS quite easy to integrate with the Client ...
1
vote
2answers
192 views

Make a Chart with multiple Sharepoint lists (using AngularJS)

few days ago I posted a question on how to do a Chart with AngularJS of a sharepoint list, here's the link. Now I have a more complicated one: how to make a chart with multiple lists? I'm using ...
1
vote
1answer
143 views

angularjs with Sharepoint 2013 using ajax

Although it discussed here: AngularJS with Sharepoint 2010 not working And uses of timeout in order to make the page being loaded synchronous (I don't like this solution) - it's not work. I have ...
1
vote
2answers
776 views

how can we use Angular with sharepoint 2010?

I am new to SharePoint development. My senior has asked me to use angular with SharePoint. Can anybody provide me any guidance about how we can use angular with SharePoint? Which version of angular ...
1
vote
1answer
788 views

Angular, XEditable and validation on a SharePoint page

I am rewriting a single page application that will be hosted "inside a SharePoint web part" as part of a rework/redesign project on a pre-existing SharePoint solution and as a part of this I am ...
1
vote
1answer
653 views

Retrieving information from another list based on the ID value that is retrieved from the first list using angularjs

I am retrieving list information using angular js, now while the information is getting looped, for each list item ID, I need to retrieve information from another list where ID is look up column from ...
1
vote
1answer
249 views

Angular and SharePoint: missing references?

Assume: I am new to Angular, still don't know what I am doing. I am trying to create a SharePoint-hosted app that will pull some data from lists deployed with that app. I don't want to use Default....
1
vote
1answer
226 views

SharePoint Search refiner does not work after loading Angular library

SharePoint search refiner adds slash(/) between #k and #s parameters then refinement panel does not work property with out of the box behavior. After work around found that this happens after ...
1
vote
1answer
489 views

How to save current login name to SharePoint people and group column using angularjs?

Add.js $scope.addEntity = function (entity, $event) { entity.dateString = $("#dpFrom").val(); entity.ExpDateString = $("#dpTo").val(); if (entity && ...