Giter Site home page Giter Site logo

angularjs-de / angular2-tutorial Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 14.0 143 KB

Code zu Artikel: Angular-Tutorial für Einsteiger

Home Page: https://angular.de/artikel/angular-tutorial-deutsch/

License: MIT License

TypeScript 83.18% HTML 13.33% CSS 3.49%

angular2-tutorial's People

Contributors

killercodemonkey avatar robinboehm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular2-tutorial's Issues

Either the name attribute must be set or the form control must be defined as 'standalone'

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" >

self.context.search is undefined

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 }}

order-component id

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?

Readme

A readme file would be nice :) maybe only with a link to your tutorial

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.