Mandar Badve

Microsoft web, cloud, mobile developer



Manage Visual Studio Performance – Hide Source Control Explorer and Immediate windows at startup – Visual Studio 2017

Speed up visual studio 2017 startup

Finally we got option to manage performance for Visual Studio in 2017 version. You can see it from help menu.

Visual Studio Help

Here are options to manage performance.

Visual Studio Help Modal

Continue reading “Manage Visual Studio Performance – Hide Source Control Explorer and Immediate windows at startup – Visual Studio 2017”






Get location coordinates with windows phone application

Location API

You can use Windows Phone’s location API if your windows phone application needs location of user. In this post we will see how to use location API.

Let’s code

Getting started by creating new windows phone application.

CreateProject

Double click on ‘WMAppManifest.xml’ file.(You can read here for more details.) You will find this file inside projects Properties.

Capabilities

Go to Capabilities tab and then select ‘ID_CAP_LOCATION’ capability. This will tell to Windows Phone Store that this application need access to users location. While installing application user will see prompt message about the need of location service. This is the first step of get permission to access location from the user.

LocationServiceCapabilities

Continue reading “Get location coordinates with windows phone application”


AngularJS directives and custom directives

Angular is very popular JavaScript framework and custom directives are the heart of the angular. We will take look at the directives.

Angular directive

Directives are the command, tells angular what operations can angular do on the DOM element, attribute or the children of the element. These angular directives extend the HTML attributes. Angular directives are prefixes by ng-. Following are the some popular directives by angular.

ng-app: It initializes the angular application.

ng-init: It initializes the data of application.

ng-model: It provides the access to the model data for binding to the HTML controls.

For example

<div ng-app="firstApp" ng-init="firstName='John'">
<p>This is angular js application</p>
Change the name: <input type="text" ng-model="firstName" />
<p>My name is {{firstName}}
</div>

In above example firstApp is the name of the angular application. The name is not mandatory. You can keep blank as well. Next attribute is ng-init which initializes the data used by the application. By using the ng-model textbox can change the value of the firstName variable defined in the model. And finally we have used {{firstName}} to display the actual value of the variable.

Continue reading “AngularJS directives and custom directives”