Property bindings for Angular 2 components should have names in kebab case at the HTML that calls out to them to match up with the Input names in camel case at the .ts file for the component itself. This variation in wire-up takes some getting used to. There is also the concept of upper kebab case which would be like: My-Dog-Has-Fleas instead of just my-dog-has-fleas ...this is called train case. There is also UPPER_SNAKE_CASE too. This is also called screaming snake case.
No comments:
Post a Comment