This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.Raw(ViewData["SpaHtml"]) | |
@section scripts { | |
<script src="~/dist/scripts.bundle.js" asp-append-version="true"></script> | |
<script src="~/dist/inline.bundle.js" asp-append-version="true"></script> | |
<script src="~/dist/polyfills.bundle.js" asp-append-version="true"></script> | |
<script src="~/dist/vendor.bundle.js" asp-append-version="true"></script> | |
<script src="~/dist/main.bundle.js" asp-append-version="true"></script> | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<base href="/" /> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>@ViewData["Title"]</title> | |
@Html.Raw(ViewData["Meta"]) | |
@Html.Raw(ViewData["Links"]) | |
@Html.Raw(ViewData["Styles"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InitialHeroBuilder | |
{ | |
private readonly HeroShopDbContext _context; | |
public InitialHeroBuilder(HeroShopDbContext context) | |
{ | |
_context = context; | |
} | |
public void Create() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<div class="navbar navbar-dark bg-dark box-shadow"> | |
<div class="container d-flex justify-content-between"> | |
<a href="#" class="navbar-brand d-flex align-items-center"> | |
<strong>Acme.HeroShop</strong> | |
</a> | |
</div> | |
</div> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent implements OnInit { | |
heroCompanies: any = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ConnectionStrings": { | |
"Default": "Server=localhost; Database=HeroShopDb; Trusted_Connection=True;" | |
}, | |
"Authentication": { | |
"JwtBearer": { | |
"IsEnabled": "false", | |
"SecurityKey": "HeroShop_C421AAEE0D114E9C", | |
"Issuer": "HeroShop", | |
"Audience": "HeroShop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Startup | |
{ | |
public IServiceProvider ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc(); | |
services.AddNodeServices(); | |
return services.AddAbp<HeroShopPublicModule>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<div class="navbar navbar-dark bg-dark box-shadow"> | |
<div class="container d-flex justify-content-between"> | |
<a href="#" class="navbar-brand d-flex align-items-center"> | |
<strong>Acme.HeroShop</strong> | |
</a> | |
</div> | |
</div> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent implements OnInit { | |
title = 'app'; | |
heroCompanies: any = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HeroAppService : HeroShopAppServiceBase, IHeroAppService | |
{ | |
private readonly IRepository<Hero> _heroRepository; | |
private readonly IRepository<HeroCompany> _heroCompanyRepository; | |
public HeroAppService( | |
IRepository<Hero> heroRepository, | |
IRepository<HeroCompany> heroCompanyRepository) | |
{ | |
_heroRepository = heroRepository; |
NewerOlder