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
const fs = require('fs') | |
const path = require('path') | |
// absolute paths to all symlinked modules inside `nodeModulesPath` | |
// adapted from https://github.com/webpack/webpack/issues/811#issuecomment-405199263 | |
const findLinkedModules = (nodeModulesPath) => { | |
const modules = [] | |
fs.readdirSync(nodeModulesPath).forEach(dirname => { | |
const modulePath = path.resolve(nodeModulesPath, dirname) |
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
<section class="sample-app-content"> | |
<h1>Template-driven Form Example:</h1> | |
<form #f="ngForm" (ngSubmit)="onSubmitTemplateBased()"> | |
<p> | |
<label>First Name:</label> | |
<input type="text" | |
[(ngModel)]="user.firstName" required> | |
</p> | |
<p> | |
<label>Password:</label> |