We can publish web application from visual studio to azure.You can also create all the resources required for hosting web application in azure in visual studio.In this article we will see how to publish web application to azure from visual studio. Create web application in visual studio select the template After the web application is […]
Archives for July 2019
Create a WebApp in Azure
Azure Web Apps Azure App Service is used for creating HTTP-based service and could be used for hosting web applications, REST APIs, and mobile back ends.It comes in the is a platform-as-a-service or PaaS deployment model. It supports the following languages: ASP.NET ASP.NET Core Java Ruby Node.js PHP Python There are numerous options for hosting […]
Find repeated characters in a string in C#
If you have a given string and you want to count the number of characters which are repeated in the string then you can use the following program. public static void Main(string[] args) { int numberOfRepeatedChars=0; char[] chars=new char[25]; string str=”AAABCDEE”; char tocheck=(char)’a’; foreach(var i in str) { int charNo=0; var asc=(char)i; charNo++; if(!chars.Contains((asc))) { […]
Inject Service into Component in Angular
Angular framework provides dependency injection to automatically inject services. Whenever we specify a service as a constructor parameter ,Angular automatically injects the service instance in the class.You provide required services to the different components using constructor parameters. In Angular a service is a class decorated with the @Injectable decorator: import { Injectable } from ‘@angular/core’; […]
Bootstrapping in Angular application
Angular application is initialised or bootstrapped based on the configuration and the specified properties.The important parts of Angular application from bootstrapping point of view are: main.ts This file defines the starting point of the angular application.It is defined by the following line in main.ts: platformBrowserDynamic().bootstrapModule(AppModule); We need to understand how this works.Angular initializes / bootstraps […]