Category: Javascript

  • AngularJS ng-options syntax

    I keep forgetting the correct syntax for ng-options in angular dropdowns. The documentation can be found here: https://docs.angularjs.org/api/ng/directive/ngOptions The syntax used in the documentation is a bit confusing: A concrete example for the syntax would look like this: I hope this helps myself and maybe someone else as well…

  • Bézier curves

    Some time ago I did some interview question that I just wanted to share mostly because I want to keep a backup of it. The questions were the following: We start with three dots (green) on the screen. We need to connect these dots with a smooth line (blue) rather than direct lines (grey). What would…