Added sparse-checkout instruction to AngularJS sample

This commit is contained in:
Jovan Popovic
2017-12-18 11:15:06 +01:00
parent ba124d5667
commit c4d63e1a39
@@ -8,6 +8,7 @@ In this example you will see how easily you can integrate Single-page apps imple
[About this sample](#about-this-sample)<br/>
[Before you begin](#before-you-begin)<br/>
[Get this sample](#get-this-sample)<br/>
[Run this sample](#run-this-sample)<br/>
[Sample details](#sample-details)<br/>
[Disclaimers](#disclaimers)<br/>
@@ -39,6 +40,33 @@ To run this sample, you need the following prerequisites.
1. Permission to create an Azure SQL Database
<a name=get-this-sample></a>
## Get this sample
Sample project is placed on SQL Server GitHub repository. You can clone or download repository and locate code
in samples/features/json/angularjs/dotnet-tour-of-heroes folder.
If you want to clone only this sample (without other samples), run the following commands from Git Bash:
```
git clone -n https://github.com/Microsoft/sql-server-samples sql-server-samples
cd sql-server-samples
git config core.sparsecheckout true
echo "samples/features/json/angularjs/dotnet-tour-of-heroes/*" >> .git/info/sparse-checkout
git checkout
```
Or you can use the following PowerShell script:
```
git clone -n https://github.com/Microsoft/sql-server-samples .\sql-server-samples
cd sql-server-samples
git config core.sparsecheckout true
echo samples/features/json/angularjs/dotnet-tour-of-heroes/* | Out-File -append -encoding ascii .git/info/sparse-checkout
git checkout
```
<a name=run-this-sample></a>
## Run this sample