- import
FormsModule - create form with input and submit-type button
- in
<form>- create
#ftemplate variable and assignngFormto it - add
(ngSubmit)output, usef.valueas handler's parameter
- create
- in
<input>tag:- add
nameattribute
- add
- add
ngModelattribute
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
| curl -s "https://get.sdkman.io" | bash | |
| source "$HOME/.sdkman/bin/sdkman-init.sh" | |
| sdk version |
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
| #!/bin/bash | |
| # sudo ./terraform_installer.sh -a linux_amd64 | |
| set -e | |
| while getopts a: flag | |
| do | |
| case "${flag}" in | |
| a) ARCHITECTURE=${OPTARG};; |
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
| const express = require('express') | |
| const bodyParser = require('body-parser') | |
| // instantiate express application | |
| const app = express() | |
| app.use(bodyParser.urlencoded({extended: true})) | |
| app.use(bodyParser.json()) | |
| // create POST route | |
| app.post("/", (req, res) => { |
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
| const express = require('express') | |
| // instantiate express application | |
| const app = express() | |
| // create simple route | |
| app.get('/', (req, res) => { | |
| res.send('Hello world!') | |
| }) |
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
| const azure = require('azure-storage'); | |
| const fs = require('fs'); | |
| const STORAGE_ACCOUNT_NAME = '<STORAGE_ACCOUNT_NAME>'; | |
| const STORAGE_ACCESS_KEY = '<STORAGE_ACCESS_KEY>'; | |
| const blobService = azure.createBlobService(STORAGE_ACCOUNT_NAME, STORAGE_ACCESS_KEY); | |
| const containerName = "videos"; | |
| const videoPath = "SampleVideo_1280x720_1mb.mp4"; | |
| // retrieve video properties | |
| blobService.getBlobProperties(containerName, videoPath, (err, properties) => { |
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
| npm init -y |
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
| (event)="doSomething($event); $event.stopPropagation()" |
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
| ng g c user-list |
ng serve
npm start
NewerOlder