Skip to content

Instantly share code, notes, and snippets.

@SimonDoy

SimonDoy/constants.js

Last active Jan 22, 2020
Embed
What would you like to do?
'use strict'
var constantsModule = angular.module('applicationConstantsModule', []);
constantsModule.constant('applicationConstants', {
'clientId':'{clientguidhere}',
'tenantName':'ithinksharepoint.com',
'instance':'https://login.microsoftonline.com/',
'endpoints': {'https://{apiurlhere}.azurewebsites.net/api':'https://ithinksharepoint.com/Itsp365.InvoiceFormApp.Api.Mark2'},
'apiUrl': 'https://{apiurlhere}.azurewebsites.net/api'
});
@ralphwillgoss

This comment has been minimized.

Copy link

@ralphwillgoss ralphwillgoss commented Jan 22, 2020

Hi Simon,
I know this is old but you use the above example at the end of your article, however is had the capital P back in endpoints - which you corrected earlier.

thanks
Ralph

@SimonDoy

This comment has been minimized.

Copy link
Owner Author

@SimonDoy SimonDoy commented Jan 22, 2020

Hi Ralph,
Thanks for taking the time to let me know. I will date, it has been a long time since writing these!

Cheers
Simon

@ralphwillgoss

This comment has been minimized.

Copy link

@ralphwillgoss ralphwillgoss commented Jan 22, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment