Angular run multiple apps in 1 project, Optionality bootstrap components

most posts you'll find talk about actually managing 2 totally different apps under 1 project, and that's best described here: .

but what i really want to achieve is behavior more close to angular 1.x where you could write like 50 directives / components and put just set the ng-app attribute in your Aspx master page and it would just catch whatever is in, so in each page there were 2-10 directives and all was good.

with the angular-cli today its not native possible, but kouasda found a solution, where you test the page for the your angular tags and bootstrap them accordingly, as told in this issue and shown in this plnk.

eventually your app.module should look like this

import {BrowserModule, DOCUMENT} from '@angular/platform-browser'import {NgModule, Inject, ApplicationRef} from '@angular/core'import {AppRootOne} from './app-root-one.component'import {AppRootTwo} from './a…

c# WebRequest error An existing connection was forcibly closed by the remote host

“An error occurred while making the HTTP request to https://<API endpoint>. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.” Inner exception was “Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

this happened to me when doing some HttpWebRequests and suddenly everything stopped working.

apparently the server changed protocol to Tls1.2, and that caused all the mess. PLUS i was using .Net4 so no enum there, so here is the magic line for all you problems

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

Sharepoint Rest Api

Working with the SP Rest Api i found some basics that are here to remember.

get by title
var u = "/sites/newportal/_api/Web/lists/getbytitle('Site Pages')/items"

select person field
u += "?$select=Title,Assigned_x0020_To0/Name,FileRef,FileDirRef" +

get folder
var u = "/sites/newportal/_api/Web/GetFolderByServerRelativePath" + 

but to really get a person data by folder in site pages i had to use search

var u = "/_api/search/query?" +
            "querytext='ParentLink:NewEmp'" +

SharePoint Group Display Templates [Grouping]

the questions...

How to Group Search Results Using Default Display Templates?

Grouping search results with display templates for the CSWP?

How to Define a Custom Group Display Template (GroupTemplateId)?

and the answer is a sad one...


Well, 1st create yourself a Group Display Template file, just take the default "group_xxx.html" from the "Search" or "Content Search" Folders, whatever you are using.

After adding it to the Master Pages, you can't add it via JS, you MUST download a copy or you Search WebPart (export) and change the value in "GroupTemplateId" to your group JS file.

Now at least you have a CSWP with you own group.html/js file.

So I've never really payed attention but in our Controls Display Templates the rendering part is in _#= ctx.RenderGroups(ctx) =#_ , GROUPS, not items.

This actually ALWAYS going through a group rendering function, and hey, i want to use it. but how?

nothing... NOTHING is the documentation (THX M…

SharePoint display templates ERROR: hexadecimal value 0x3C, is an invalid attribute character

its an error about a "<" or ">".

you might have user "Enter" for an element with too many attributes like this

<a href="value......."

collapse it to this
<a href="value......."  class="value......."  id="value......."  data-toggle="value.......">

SyntaxError: expected expression, got '&'

SyntaxError: expected expression, got '&'

this belongs to the if syntax "a = b ? c : d";

probably the problem is in the 'b'

Adding a Full Task [PlannerTask] to 365 planner

Today i created an angular app to interact with MS 365 Planner. I tried to add a task. The example @MS - create task works fine
{"planId":"xqQg5FS2LkCp935s-FIFm2QAFkHM","bucketId":"hsOf2dhOJkqyYYZEtdzDe2QAIUCR","title":"Update client list","assignments":{"fbab97d0-4932-4511-b675-204639209557":{"@odata.type":"#microsoft.graph.plannerAssignment","orderHint":" !"}},}
Adding a details object was great until i was trying to add some checklist items.
My app gave this error [400]:

message:"Schema validation has failed. Validation for field 'Title', on entity 'Task' has failed: A non-null value must be specified for this field."

Well, this is the end of the story, since after everything went well in the Graph Explorer my app still gave the same error, until i notices that the Content-Type was application/x-www-form-urlencoded.

The Fix is