Questions tagged [angular2]

Angular 2 is the next version of Google's massively popular MV* framework for building complex applications in the browser (and beyond).

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

pnp.js - Join 2 sharepoint lists using camlquery

I am facing issue with joining 2 sharepoint lists using pnp.js. I have 2 lists, the first one named "Phasen" have 2 columns, Title, Wow. The second list named "Projects", have 2 cloumns - Title, ...
0
votes
0answers
19 views

PnP SPFx generator - Angular Elements and live change

I have been doing some tests with the Angular Element SharePoint Online Web Part project template generated by the @pnp/generator-spfx Yeoman generator (see here) to evaluate its usage for a small ...
0
votes
1answer
32 views

Removing user from Sharepoint User group api call succeds but user not getting deleted

The below code is the to remove a user from the SharePoint user group, the API call returns a 200 but the user not getting from removed from the SharePoint user group. removeUserFromUserGroup(email): ...
0
votes
2answers
53 views

Access denied when adding or removing user from SharePoint user group

I am using SharePoint 2013 online. We have SharePoint groups and there the group owner can successfully add or remove the users. But when accessing the user groups through JSOM in my angular app ...
0
votes
0answers
29 views

PnP JS Core : Uncaught (in promise): TypeError: Cannot read property of undefined

I am using PnP js in one of my angular 6 project. I have a function which is defined in the Component, but I am getting this error at run-time when calling from inside the success of PnP SP js: ...
1
vote
1answer
30 views

SPFx Angular Routing Issue

I have created SPFx webpart with angular2 and implemented routing and navigation but facing issue as below image: Error: 1. WebPart structure: 2. app-routing.module.ts file 3.app.module.ts file
2
votes
0answers
14 views

SharePoint Online is not serving index.aspx file from document library on mobiles

I have created an angular app and uploaded it to the SiteAssets library of my SharePoint online site renaming index.html to index.aspx. If I open the index.aspx file on my notebook everything works as ...
1
vote
1answer
118 views

Error when compiling after importing into my solution the sp-page-context npm package

I am getting this error when I import the sp-page-context into my angular solution: ERROR in ./node_modules/@microsoft/sp-core-library/lib/SPCoreLibraryStrings.resx.js Module not found: Error: ...
0
votes
1answer
37 views

SharePoint 2013 List NewForm,DisForm,EditForm.aspx to be replaced with CustomForm.aspx(Angular Form)

I have created Angular-6 Form & deployed to the SharePoint 2013 page (CustomForm.aspx). Provided navigation to the new page. Once form is filled & submit button is clicked, an item is created ...
1
vote
0answers
17 views

SharePoint Wiki Page CheckIn not working for IE after adding Angular code in web part

This is a SharePoint 2013 Enterprise Wiki Site and a new Angular 7 app is embedded to Content editor web part in master page. Once a Wiki Page is edited CheckIn ribbon button can be clicked. But the ...
0
votes
0answers
8 views

Remove need to add AAD guest users after AD login to access webapi

We have an angular SPA using adal.js. Our users are all in the same domain protected by Active Directory. After Successful AD login, we want them to access our web apis. The requests fail unless the ...
0
votes
0answers
77 views

Unexpected token error: While calling SharePoint hosted webmethod from angular 6

I have deployed a web service by mapping to sharepoint's layout folder. It is deployed as farm solution. I am able to call web service from browser, which returns json data. When I am trying to call ...
0
votes
1answer
84 views

How to send mass emails with only BCC recipients but not To?

I am trying to send some subscription emails, need all the email addresses in BCC. I tried something like this const requestUrl = `${this.baseUrl}/_api/SP.Utilities.Utility.SendEmail`; const ...
2
votes
0answers
49 views

Error in seting up spfx 1.7 with angular 7

Hi I am setting up a SPFX 1.7 project with Angular 7 using the sample which is done with previous version. https://www.youtube.com/watch?v=_OgEqWtouuU https://winsmarts.com/use-spfx-with-angular-cli-...
1
vote
0answers
261 views

Local workspace file ('angular.json') could not be found error in SPFX

I am trying to use angular 4 in SharePoint Framework. Basic setup is done but when I try to use angular command ng g service app it throws error Local workspace file ('angular.json') could not be ...
2
votes
1answer
457 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 ...
1
vote
1answer
815 views

Accessing sharepoint list using REST api with angular gives 403 error

I am trying to make a call to sharepoint list using REST APIs. I am logged in to sharepoint and when in browser tab, I enter the rest url like: https://myserver.sharepoint.com/sites/mylist/_api/...
2
votes
0answers
664 views

Error when running gulp serve, when implementing SPFX with Angular 4

Implementing SPFX with Angular 4 using the below link: https://blog.hubfly.com/solutions/how-to-integrate-sharepoint-framework-spfx-with-angular-4. Getting the below error after running the gulp ...
2
votes
1answer
1k views

Angular 6 and Sharepoint SPFX

Just wondering if anyone has any samples or links to instructions for running an angular 6 app on Sharepoint SPFX. I have followed this example for Angular 5 but it will not work once I upgrade the ...
0
votes
1answer
792 views

Sharepoint Online & Angular (latest)

i've got some questions for whoever has some experience with Angular and SP Online. What i'm trying to achieve : Move from SP Designer to custom Angular forms (we all know the limits and bugginess of ...
0
votes
0answers
337 views

How to integrate Angular to sharepoint?

My current approach is to build the angular app (Angular 6 at the time) To re declare index.html as index.aspx Place inside a directory in sharepoint. Then in front page, add a web part: Media and ...
1
vote
2answers
316 views

SPFX with Angular 4 - should I use this approach?

I'm just a new guy in the SPO. Angular 4 + SPO - do you think that is Ok? What kind of problem should I think first? Routes? trusted scripts?
0
votes
1answer
74 views

Can be code of SharePoint hosted app which is written in Angular 2.0, move to SharePoint 2010?

I have created SharePoint hosted app which is written in Angular 2.0 in the SharePoint 2013, now I want to use this app's code to SharePoint 2010. Can it be possible?
3
votes
1answer
381 views

SPFx - Template for Angular 2

I need to install an Angular 2 template, but when I try the GitHub templates I have mistakes. Would you give me a quality template or tutorial for Angular 2 with SPFx: Errors:
1
vote
2answers
2k views

Import SP.js to typescript (Angular 4) application and use JSOM

I would like to use JSOM for things like creating Caml queries as I have to migrate AngularJS to Angular 4. The app is running in a WebPart. Unfortunately there is no npm package for this. How can I ...
4
votes
0answers
341 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 ...
1
vote
1answer
50 views

Sharepoint Online display Angular Snippet

I'm pretty new to Sharepoint and want to create some kind of dynamic Styleguide. Therefore I need to display some small Angular Snippets with additional libraries like Bootstrap. Is there a way how ...
0
votes
1answer
250 views

HTML does not render properly in SharePoint Hosted App with Angular 2

I am trying to create a very basic SharePoint Hosted App with Angular2. App deployed successfully but it does not render the html properly. And I am stuck at this initial level only. refer below ...
3
votes
1answer
369 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 ...
2
votes
0answers
741 views

Sharepoint 2013 & Angular 2

Hello my fellow developers. As the title implies I have an issue when I try to integrate Angular 2 with SP 2013. Angular needs several files from node_modules in order to work. The problem is that I ...
6
votes
1answer
2k views

Angular 2 with SharePoint provider hosted app

I have one requirement to create SharePoint Provider hosted app with Angular 2. I have beginner level knowledge about SharePoint app with Angular2. I have created one SharePoint Provider hosted app ...
1
vote
2answers
193 views

spfx webpart with angular error

I'm following the few examples I could find about implementing a spfx webpart with angular2. I get this error when deploying to the site workbench (../layouts/workbench.aspx) [SPWebPartErrorCode....
0
votes
1answer
93 views

cant connect SharePoint with sharepointconnector npm package

I have sharepointconnector in my angular2 app. And I am trying connect SharePoint as I see in tutorials but here is error and my code. export class HomeComponent { constructor(){ var ...
3
votes
1answer
2k views

Using Angular2 in SharePoint Online

All I need to develop a simple application in Angular2 which will run on SharePoint Online. I have gone through all the articles relevant to be able to make a decision. My Options are either, I ...