Monday, July 27, 2015

Sharepoint 2016 Preview is available in August 2015

According to Bill Baer,  senior product manager for SharePoint at Microsoft demostrated a presention in IT Unity's webinar.

"Tech Talk with Bill Baer, Webisode #9
Sponsored by Colligo

Topic: A preview of SharePoint 2016 Preview, which will be released in August!
And... the Conversation Continues - Codename Fort Knox and achieving similar security on-premisesBill Baer is a Senior Technical Product Manager & Microsoft Certified Master for SharePoint in the SharePoint product group.
"


Looking forward to this release.

Friday, July 17, 2015

How to set the default value of drop down list in AngularJS

the solution is quite simple and straingt forward, i hope this post can save you time on scratchin your head. put selected attribute in the Option tag.

i had put down the snippet of code as example

 <select>
        <option value='{{customer.title}}' selected>{{customer.title}}</option>
        <option ng-repeat='slaveCustomer in customer.slaveCustomerList'>{{slaveCustomer.title}}</option>
 </select>

Friday, July 10, 2015

How to call a method within the controller or service in AngularJS framework

it is a good idea to reuse some function when we implement the project.

it is quite easy to do it in C#.

in AngularJS is a little tricky.

we must define the reference controller or service before we can use it to call the method.

here is the sample code to demostrate the approach.

customerApp.service('customerService', ['$http', function ($http) {
    var self = this;
  
  this.getCustomers = function ($scope) {

  }

 this.MergeCustomers = function ($scope) {
        return $http({
            method: "POST",
            url: "/AngularJS/api/Customer/Customer",
            dataType: 'json',
            data: {

            },
            headers: { 'Content-Type': 'application/json' }
        }).success(function (serverData) {
            self.getCustomers($scope);
        });
    };