Skip to content

Instantly share code, notes, and snippets.

@RaymsDev
RaymsDev / AngularAppWebPart.ts
Created Jan 8, 2018
[spfx-angular] Http request exemple
View AngularAppWebPart.ts
import { Version } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneTextField
} from '@microsoft/sp-webpart-base';
import { escape } from '@microsoft/sp-lodash-subset';
import styles from './AngularAppWebPart.module.scss';
import * as strings from 'AngularAppWebPartStrings';
@RaymsDev
RaymsDev / app.module.ts
Created Jan 8, 2018
[spfx-angular] app root module
View app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
@RaymsDev
RaymsDev / app.component.ts
Last active Jan 8, 2018
[spfx-angular] app root component
View app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<div>
<h1>
Welcome to {{ title }}!
</h1>
</div>