Using the ng-version attribute is the correct way to identify the Angular version number. if you want more confirmation you can execute in console:
getAllAngularRootElements();
which will show you Angular elements. Or more accurately
getAllAngularRootElements()[0].attributes["ng-version"];