Great video Ravi . Sorry about your attack Court.I've been wondering why I haven't been approached by any dog in awhile while riding the other day. This is the technique I use, If I sense a dangerous dog approaching I stop as fast as possible and get off my bike and place between dog and myself. The dog knows you are vulnerable if you try to race away and will try to bite your leg. When you stop and get off MOST dogs will know your in charge now. Just hold handlebars and seat. If the dog attacks pick up your bike and aproach dog keeping your bike between you and dog. If dog is really dumb, and lunges at me, the dog gets the pedal crank brought down on the neck. With an electric bikes weight, it will be hard to manuvere , but I'm sure the adrenalin will help. Be safe.
You wont have any problems using this method.