A Pen by Ross Martin on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html data-ng-app> | |
| <head> | |
| <script src="/bower_components/angular/angular.js"></script> | |
| </head> | |
| <body> | |
| <input ng-controller="DemoController"/> | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div data-ng-controller="navController"> | |
| <div id="user" data-ng-class="{ 'student' : currentUser.user_type === 'student' }"> | |
| <div> | |
| <div class="userName"> | |
| <i class="user-icon"></i> | |
| {{ currentUser.first_name + " " + currentUser.last_name }} | |
| {{ currentUser.first_name == null ? 'My User' : ''}} | |
| <a href="/#/logout/" class="logout"><i></i>Logout</a> | |
| </div> | |
| <div class="helpCircle"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('in the create'); | |
| Application.create(app).exec(function(err, createdApp) { | |
| if ( err || !createdApp ) { | |
| console.log('error was', err); | |
| } | |
| console.log('app created'); | |
| return res.send(200); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Great job kevin! |
OlderNewer