About me
I live in Lund and work, well, at probably the best company in the world
Tag Cloud
Active Directory
AD
ajax
Android
api
app
Apps
ASP.NET
azure
C#
CAML
Chuvash
Client Object Model
codeplex
console
csom
csr
css
css3
database
devtools
extension
git
github
google chrome
html
html5
javascript
jQuery
jQuery tmpl
js
jslink
jsom
json
keyboard
keyboard layout
LINQ
linux
localization
log
masterpage
ModalDialog
monitoring
office365
onet.xml
Performance
Powershel
PowerShell
raspberrypi
REST
rättigheter
script
Serverinstallation
Sharepoint
SharePoint 2010
sharepoint 2013
sharepoint2013
sharepoint apps
sharepoint online
SP.js
spapp
SPField
SPList
SPListItem
spo
SPWeb
subversion
tips
ubuntu
VHD
Visual Studio
webpart
webparts
windows
xml
Top posts
Certiffications


Blog Stats
- 601,818 hits
Recent Comments
Blogs I Follow
- Daniel Chronlund Cloud Tech Blog
- Вула Чăвашла
- Discovering SharePoint
- Bram de Jager - Architect, Speaker, Author
- SharePoint Dev Lab
- GUID(E) To SharePoint
- SharePoint Dragons
- Mai Omar Desouki
- Cameron Dwyer
- paul.tavares
- Share SharePoint Points !
- Simple Stuffs
- Jimmy Janlén "Den Scrummande Konsulten"
- Aryan Nava
- SPJoel
- SharePointRyan
- SharePoint 2020
- Aharoni in Unicode
- ... And All That JS
- blksthl
Hi Anatoly.
I also work with SharePoint and Angular.
There is a different way to detect the edit-mode – you can use the app-tokens. But i have a problem.
If you would use this url in your app (with the hash prefix : #)
~appWebUrl/Content/index.html#?{StandardTokens}
then the StandardTokens would not get added to the page call.
it would simply be ~appWebUrl/Content/index.htm – and i do not know why.
If you would make the call without the # – the app-tokens are added.
Do you have any solution for this problem?
Hi Thomas! Wow! Really nice to hear that there are more people who are working with Angular in SharePoint. We can share our expieriences. Unfortunately I haven’t worked with SharePoint apps yet, so I haven’t any solution for the mentioned issue. But I can take a look at it. Do you also want to detect the edit mode? Or is it something else? As far I know, you can’t use {StandardTokens} in the url after the #. SharePoint won’t parse them because they are not in the location.search.
I would love to exchange some expieriences.
Here you can find all the Token you will get, when an app-part is called:
http://blog.sharepointalist.com/2013/02/sharepoint-2013-app-part-tokens.html
There is also a “editMode” param i need to use in my angular app.
When there is no workaround for the # issue, i think it would make sense to read the string manually.
var params = document.URL.split(“?”)[1].split(“&”);
and then call he angular url with the params … i will try this 🙂
It worked! … i made a start.html with one line of JS-code in the hader:
self.location = ‘index.html#/?’ + document.URL.split(‘?’)[1];
As you can see, i called my index.html and angular gets all SP params ;D yeah!
It is awesome! I want to investigate more. Angular seems to be a very powerful tool in the powerful SharePoint!
Hi, Thomas. I have tried out the editMode. like the SharePointalist says. But unfortunately, the editMode is “1” (true) only when your are editing your app part, not if the host page is beeing edited.
Hi Anatoly. The edit Mode is for the app-part-view only.
Hi Anatoly
I’m trying to pass values from the modalOptions button action to create a dynamic html variable. The show function works file but I see no modal dialog pop up. Any ideas?
Thank you.