Skip to content

Instantly share code, notes, and snippets.

@RaymsDev
RaymsDev / AngularAppWebPart.ts
Created January 8, 2018 15:50
[spfx-angular] Http request exemple
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 January 8, 2018 14:51
[spfx-angular] app root module
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 January 8, 2018 15:01
[spfx-angular] app root component
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<div>
<h1>
Welcome to {{ title }}!
</h1>
</div>