Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
directive name should be trimmed #11397
Directive name should probably be either trimmed or angular should throw an exception, so a typo is easier to spot. Leading or following space is clearly an error.
In the following example the name is 'directiveName ' instead of 'directiveName':
Maybe same rule should be applied to controllers, factories etc, although it's still possible to inject those with an extra space.