
Creating Angular2 Project using Angular CLI
Follow these steps to create an Angular JS 2 project using Angular CLI. Install Angular CLI on your machine npm install -g angular-cli If that doesn't work, install npm install -g @angular/cli Create a new project using ng command:...
A workaround for ng-change in angular js which does not catch file input change event. view.html: <input type="file" custom-on-change="uploadFile"> controller.js: app.controller('myCtrl', function($scope){ $scope.uploadFile = func...
The solution doesn’t require writing a specific directive or adding any additional attributes or decoration to my page content - a short timeout (like, 1ms short) inside of which Prism.highlightElement(elem) is called. // Content is my service, ...