Dear learner,
Negative side of the X- axis is also a part of the X- axis and if a line intersect the X-axis, to measure the slope of the line, it is not necessary that the inclination of a line has taken only from positive side of X-axis, it can be taken from negative side of the X-axis, it is depend where the line is intersecting the X- axis.
Hope it will help.
Best wishes