I recently wrote the following code:
<style>
.dotted {
border:dotted;
}
</style>
....
<p ng-style="mystyle" ng-class="dotted">{{ answer }}</p>
My intention was to have the paragraph element enclosed within a dotted border line. However, it does not seem to be working as expected. Upon reviewing the Angular documentation (https://docs.angularjs.org/api/ng/directive/ngClass), I came across the following information:
If the expression evaluates to a string, the string should be one or more space-delimited class names.
From this, I gather that ng-class is meant to contain a class name defined within the <style>
tag itself. So, where could I possibly be going wrong?