Ng-Src is similar to src attribute of image tag. In this example of ng-src, we have a scope variable name "pic" and we are assigning its value to $scope.pic = ""; and binding it to image like

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> <link rel="stylesheet" href=""> </head> <body ng-app="Example"> <div class="container well" ng-controller="ExampleController"> <img ng-src="{{pic}}" /> </div> <script> var app = angular.module("Example", []); app.controller('ExampleController', ['$scope', function ($scope) { $scope.pic = ""; }]); </script> </body> </html>