Konda.eu

Tag Archives: AngularJS

No comments

Slides and Demos from AngularJS 1.x Presentation

A couple of days ago I had a presentation about AngularJS 1.x. If anyone is interested below are slides and link to demo project.

No comments

AngularJS hide fields until initialized

A pesky thing about AngularJS is that all of the code in HTML that is mustache {{ is visible. To avoid this everything related to AngularJS can be hidden until website is finished loading up using:

[ng\:cloak], 
[ng-cloak], 
[data-ng-cloak], 
[x-ng-cloak], 
.ng-cloak, 
.x-ng-cloak {
    display: none !important;
}

 

1 comment

C# and AngularJS - Receive Post data

AngularJS is awesome, C# also. But AngularJS has slightly unstandardized way of sending data over networks. Data is packet body instead of header, which may cause quite some problems  if you're unaware of this.

MVC Framework will automatically deserialize data into object when it receives, you only need to tell it that it should look for data in body instead of header.

[HttpPost]
public int method([FromBody]Model m)
{
        // ...