angularjs-de / angular2-tutorial Goto Github PK
View Code? Open in Web Editor NEWCode zu Artikel: Angular-Tutorial für Einsteiger
Home Page: https://angular.de/artikel/angular-tutorial-deutsch/
License: MIT License
Code zu Artikel: Angular-Tutorial für Einsteiger
Home Page: https://angular.de/artikel/angular-tutorial-deutsch/
License: MIT License
In angular2-tutorial/03b-two-way-data-binding/src/app/app.component.ts:
EXCEPTION: Error in ./AppComponent class AppComponent - inline template:5:11 caused by: If ngModel is used within a form tag, either the name attribute must be set or the form
control must be defined as 'standalone' in ngModelOptions.
Fix:
<input type="text" name="search" [(ngModel)]="search" >
Error in angular2-tutorial/04-expressions/src/app/app.component.ts:
EXCEPTION: Error in ./AppComponent class AppComponent - inline template:5:8 caused by: self.context.search is undefined
{{search.toUpperCase() + "!"}}
should now be {{ search + "!" | uppercase }}
. Not sure about search.length
.
EDIT:
There must be a question mark after search
: {{ search?.length || 0 }}
Hi!
In order.component.html you have a label with for="suche"
but the input has no id
attr. How to deal with that in a component? If I add an id
, I cannot re-use the component. Once I added the scope-id to the id (id="my_component{{scope.$id}}"
) but of course thats not very elegant. Are there any best practises for that?
A readme file would be nice :) maybe only with a link to your tutorial
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.