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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Blazor; | |
using Microsoft.AspNetCore.Blazor.Components; | |
using Microsoft.AspNetCore.Blazor.Services; | |
using ServerSideSPA.App.Models; | |
using ServerSideSPA.App.Services; |
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
@page "/fetchemployee" | |
@inherits EmployeeDataModel | |
<h1>Employee Data</h1> | |
<p>This component demonstrates CRUD operation on Employee data</p> | |
<div> | |
<div style="float:left"> | |
<button class="btn btn-primary" onclick="@AddEmp">Add Employee</button> | |
</div> |
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
using ServerSideSPA.App.DataAccess; | |
using ServerSideSPA.App.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace ServerSideSPA.App.Services | |
{ | |
public class EmployeeService |
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
2 references | |
public class Startup { | |
public IConfiguration Configuration { get; } | |
public Startup(IConfiguration configuration) | |
{ | |
configuration = configuration; | |
} | |
// This method gets called by the runtime. Use this met. to add services to the container. | |
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
<ItemGroup> | |
<PackageReference Include="Microsoft.AspNetCore.App" /> | |
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.1.1" /> | |
<PackageReference Include="Microsoft.AspNetCore.Blazor.Server" Version="0.5.1" /> | |
</ItemGroup> |
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
<app-navbar></app-navbar> | |
<div class="container"> | |
<div class="starter-template"> | |
<h1>Angular, Bootstrap & Firebase Starter Application</h1> | |
<p class="lead">This application is built with Angular 4, Bootstrap 4 and Firebase.</p> | |
<h3>Courses List</h3> | |
<courses-list></courses-list> | |
</div> | |
</div> |
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
<li class="nav-item dropdown" ngbDropdown> | |
<a class="nav-link dropdown-toggle" id="dropdown01" ngbDropdownToggle>Category</a> | |
<div class="dropdown-menu" aria-labelledby="dropdown01" ngbDropdownMenu> | |
<a class="dropdown-item" href="#">Angular</a> | |
<a class="dropdown-item" href="#">React</a> | |
<a class="dropdown-item" href="#">Vue.js</a> | |
</div> | |
</li> |
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
<app-navbar></app-navbar> | |
<div class="container"> | |
<div class="starter-template"> | |
<h1>Bootstrap starter template</h1> | |
<p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p> | |
</div> | |
</div> |
NewerOlder