This file contains hidden or 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
| <div *ngFor="let student of students" class ="alert alert-secondary" role="alert" style="padding: 30px;margin: 40px;"> | |
| <h3>Student Detail</h3> | |
| <h5>Student ID: {{student.Id}}</h5> | |
| <h5>Student Name: {{student.Name}}</h5> | |
| <ng-content></ng-content> | |
| <h5>Student Address: {{student.Address}}</h5> | |
| <h5>Student Age: {{student.Age}}</h5> |
This file contains hidden or 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 { AfterContentInit, Component, ContentChild, ElementRef, Input } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-studentsdetail', | |
| templateUrl: './studentsdetail.component.html', | |
| styleUrls: ['./studentsdetail.component.css'] | |
| }) | |
| export class StudentsdetailComponent implements AfterContentInit { | |
| @Input() students! : any |
This file contains hidden or 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
| <nav class="navbar navbar-light bg-light" style="padding: 30px;margin: 40px; justify-content:center"> | |
| <span class="navbar-brand mb-0 h1">Angular Demo</span> | |
| </nav> | |
| <app-studentsdetail [students]="student1"> | |
| <h5 #color>Student Internship Project: ABC</h5> | |
| <h5>Student Contact No: 1111567890</h5> | |
| </app-studentsdetail> | |
| <app-studentsdetail [students]="student2"> |
This file contains hidden or 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 } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent { | |
| title = 'ContentChildAndConetntChildrenDemo'; |
This file contains hidden or 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 Microsoft.AspNetCore.Http; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace AzureKeyVaultDemo.Controllers | |
| { | |
| [Route("api/[controller]")] | |
| [ApiController] | |
| public class SecretsController : ControllerBase | |
| { | |
| private readonly IConfiguration _configuration; |
This file contains hidden or 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 Microsoft.Extensions.Configuration.AzureKeyVault; | |
| var builder = WebApplication.CreateBuilder(args); | |
| // Add services to the container. | |
| builder.Host.ConfigureAppConfiguration((context, config) => | |
| { | |
| var settings = config.Build(); | |
| var keyVaultURL = settings["KeyVaultConfiguration:KeyVaultURL"]; |
This file contains hidden or 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
| { | |
| "Logging": { | |
| "LogLevel": { | |
| "Default": "Information", | |
| "Microsoft.AspNetCore": "Warning" | |
| } | |
| }, | |
| "AllowedHosts": "*", | |
| "KeyVaultConfiguration": { | |
| "KeyVaultURL": "", |
This file contains hidden or 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 AzureFileShareDemo.Repositories; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace AzureFileShareDemo.Controllers | |
| { | |
| [Route("api/[controller]")] | |
| [ApiController] | |
| public class FilesController : ControllerBase | |
| { | |
| private readonly IFileShare fileShare; |
This file contains hidden or 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 AzureFileShareDemo.Repositories; | |
| using FileShare = AzureFileShareDemo.Repositories.FileShare; | |
| var builder = WebApplication.CreateBuilder(args); | |
| // Add services to the container. | |
| builder.Services.AddScoped<IFileShare, FileShare>(); | |
| builder.Services.AddControllers(); |
This file contains hidden or 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
| { | |
| "Logging": { | |
| "LogLevel": { | |
| "Default": "Information", | |
| "Microsoft.AspNetCore": "Warning" | |
| } | |
| }, | |
| "AllowedHosts": "*", | |
| "FileShareDetails": { | |
| "FileShareName": "jdlearningfileshare" |
NewerOlder