• Robert Knight's avatar
    Remove usage of bindings in component constructors · f2fcb297
    Robert Knight authored
    In Angular 1.6 the behavior where inputs to components ("bindings")
    were accessible in the controller's constructor was deprecated [1] but a
    switch was made available to re-enable the old behavior to assist migration.
    This switch has been removed in Angular 1.7, so we need to stop relying
    on it before we can upgrade.
    
    The correct thing to do is to put all init logic which accesses bindings
    (`this.someBindingName`) in the `$onInit` lifecycle method.
    
    This commit makes the minimal amount of changes to enable the app and
    tests to run without requiring pre-assigned bindings.
    
    [1] https://toddmotto.com/angular-1-6-is-here
    f2fcb297
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
tox.ini Loading commit data...
yarn.lock Loading commit data...