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
<div ng-app="myApp" ng-controller="myCtrl"> | |
<div welcome-customer></div> | |
</div> | |
<script> | |
var app = angular.module('myApp', []); | |
app.controller('myCtrl', ['$scope',function($scope) { | |
$scope.customer = { | |
name: 'Adesh', |
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-header></app-header> | |
<div class="center"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Login Here</div> | |
<div class="panel-body"> | |
<div class="login-form"> | |
<div class="main-div"> | |
<form [formGroup]="loginForm" (ngSubmit)="login()" novalidate> | |
<div class="form-group"> | |
<label for="user">User Name</label> |
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.Mvc; | |
namespace zeptoapp.Controllers | |
{ | |
[Route("api/[controller]")] | |
public class SampleDataController : Controller |
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, Inject } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
@Component({ | |
selector: 'app-fetch-data', | |
templateUrl: './fetch-data.component.html' | |
}) | |
export class FetchDataComponent { | |
public forecasts: WeatherForecast[]; |
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
<h1>Weather forecast</h1> | |
<p>This component demonstrates fetching data from the server.</p> | |
<p *ngIf="!forecasts"><em>Loading...</em></p> | |
<table class='table table-striped' *ngIf="forecasts"> | |
<thead> | |
<tr> | |
<th>Date</th> |
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
var array1 = []; //Method 1 | |
var array2 = new Array(); //Method 2 |
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
var array1 = ['First', 'Second', 'Third', 'Fourth']; //Method 1 | |
var array2 = new Array('First'); //Method 2 |
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
//Declaration after Initialization | |
array1 = ['First', 'Second', 'Third', 'Fourth']; //Method 1 | |
array2 = new Array('First'); //Method 2 |
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
var numbers1 = [10, 20, 30, 40, 50]; | |
var numbers3 = numbers1.map(function(value, index, array){ | |
return value * 3; | |
}); |
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
var numbers3 = numbers1.map(function(value){ | |
return value * 3; | |
}); |
OlderNewer