Skip to content

Instantly share code, notes, and snippets.

View debugmodedotnet's full-sized avatar

Dhananjay Kumar debugmodedotnet

View GitHub Profile
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-learningapproach',
templateUrl: './learningapproach.component.html',
styleUrls: ['./learningapproach.component.scss']
})
export class LearningapproachComponent implements OnInit {
constructor() { }
public class UnityResolver : IDependencyResolver
{
protected IUnityContainer container;
public UnityResolver(IUnityContainer container)
{
if (container == null)
{
throw new ArgumentNullException("container");
}
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Description;
import { Component, OnInit, Input, ChangeDetectionStrategy, OnChanges, ChangeDetectorRef } from '@angular/core';
import { Observable } from 'rxjs';
import { TouchSequence } from 'selenium-webdriver';
@Component({
selector: 'app-child',
template: `
<h2>Items : {{_data.counter}} </h2>
<button (click)='0'>Refresh</button>
`,
import { EventEmitter, Component, OnInit, Input, OnChanges, ChangeDetectionStrategy, SimpleChange, Output } from '@angular/core';
@Component({
selector: 'app-child',
templateUrl:'app-child.component.html',
styleUrls: ['./app-child.component.css']
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
<div class="card text-center">
<img class="img-fluid" [src]="tshirt.fimage"/>
<div class="card-header">
{{tshirt.name}}
<button (click)='cancel()' type="button" class="close" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="card-body">
<div class="container">
<div class="page-header">
<h1 class="text-danger text-center">Foo T-Shirt Company</h1>
</div>
<hr />
<br />
<div class="row">
getProducts() {
return [
{
"productId": 1,
"productName": "Leaf Rake",
"productCode": "GDN-0011",
"releaseDate": "March 19, 2019",
"description": "Leaf rake with 48-inch wooden handle.",
"price": 19.95,
"starRating": 3.2,
changeName = function () {
dbrepo.name = 'set by code ';
}